Skip to contentSkip to conversation

misc: emif: fix compilation error

PATCH In review Felipe Balbi 2 participants 3 messages May 25, 2012 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: emif: fix compilation error

commit 99d3eccf (ARM: OMAP4/5: EMIF: Probe Emif driver with initcall) introduced a compile error by not removing module_init() when adding postcore_initcall().

This problem would've been caught by just compiling the driver as module.

Fix the issue by removing module_init() from the driver.

---
 drivers/misc/emif.c |    1 -
 1 file changed, 1 deletion(-)
drivers/misc/emif.c +0 -1
index 36fda8e..8725ea9 100644
@@ -1663,7 +1663,6 @@ static void __exit emif_unregister(void)
 }
 
 postcore_initcall(emif_register);
-module_init(emif_register);
 module_exit(emif_unregister);
 MODULE_DESCRIPTION("TI EMIF SDRAM Controller Driver");
 MODULE_LICENSE("GPL");
Signature · 1 line
1.7.10.2
#1 lore raw

drivers/misc/emif.c

Quoted 20 lines · Felipe Balbi

commit 99d3eccf (ARM: OMAP4/5: EMIF: Probe Emif driver with initcall) introduced a compile error by not removing module_init() when adding postcore_initcall().

This problem would've been caught by just compiling the driver as module.

Fix the issue by removing module_init() from the driver.

---
 drivers/misc/emif.c |    1 -

 1 file changed, 1 deletion(-)
drivers/misc/emif.c +0 -0
index 36fda8e..8725ea9 100644

This driver is in drivers/memory now and this patch is certainly not applicable. Looks like you might have seen this issue with the older, internal version of the driver.

Regards
Santosh

#2 lore raw
Quoted 17 lines · Santosh
Quoted 16 lines · Felipe Balbi

commit 99d3eccf (ARM: OMAP4/5: EMIF: Probe Emif driver with initcall) introduced a compile error by not removing module_init() when adding postcore_initcall().

This problem would've been caught by just compiling the driver as module.

Fix the issue by removing module_init() from the driver.

---
 drivers/misc/emif.c |    1 -

 1 file changed, 1 deletion(-)
Quoted 8 lines

drivers/misc/emif.c

Quoted 4 lines
drivers/misc/emif.c +0 -0
index 36fda8e..8725ea9 100644

This driver is in drivers/memory now and this patch is certainly not applicable. Looks like you might have seen this issue with the older, internal version of the driver.

could be.. I probably merged something I shouldn't on my master branch ;-)

Weird is that my master is built on top of v3.4... anyway.. forget about this patch, sorry for the noise.

Signature · 1 line
balbi