rockchip:iommu:fix compiling warning when iommu enabled
authorxxm <xxm@rock-chips.com>
Tue, 24 Jun 2014 02:51:07 +0000 (10:51 +0800)
committerxxm <xxm@rock-chips.com>
Tue, 24 Jun 2014 02:51:07 +0000 (10:51 +0800)
drivers/iommu/rockchip-iommu.c

index 07fd3bb4b045e096f1e70d61d25b69a53a41dca0..fee03f2d9945eb6c6ba8a024f1df9ad8414151a8 100755 (executable)
@@ -17,6 +17,7 @@
 #include <linux/errno.h>
 #include <linux/memblock.h>
 #include <linux/export.h>
+#include <linux/module.h>
 
 #include <asm/cacheflush.h>
 #include <asm/pgtable.h>
@@ -1022,10 +1023,11 @@ static DEVICE_ATTR(dump_mmu_pgtable, 0644, NULL, dump_mmu_pagetbl);
 
 void dump_iommu_sysfs_init(void )
 {
+       u32 ret;
        dump_mmu_object = kobject_create_and_add("rk_iommu", NULL);
        if (dump_mmu_object == NULL)
                return;
-       sysfs_create_file(dump_mmu_object, &dev_attr_dump_mmu_pgtable.attr);
+       ret = sysfs_create_file(dump_mmu_object, &dev_attr_dump_mmu_pgtable.attr);
        return;
 }