bfin_dma: fix initcall return error in proc_dma_init()
authorSteven Miao <realmz6@gmail.com>
Thu, 3 May 2012 07:40:26 +0000 (15:40 +0800)
committerBob Liu <lliubbo@gmail.com>
Mon, 21 May 2012 06:54:40 +0000 (14:54 +0800)
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
arch/blackfin/kernel/bfin_dma.c

index b612324fb8daa749e95e3d90ce15df05036b619c..c166939ffb2b6b92673e4d721fc534837389a3af 100644 (file)
@@ -90,7 +90,8 @@ static const struct file_operations proc_dma_operations = {
 
 static int __init proc_dma_init(void)
 {
-       return proc_create("dma", 0, NULL, &proc_dma_operations) != NULL;
+       proc_create("dma", 0, NULL, &proc_dma_operations);
+       return 0;
 }
 late_initcall(proc_dma_init);
 #endif