mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] misc: emif: fix compilation error
@ 2012-05-25  8:11 Felipe Balbi
  2012-05-25  9:10 ` Shilimkar, Santosh
  0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2012-05-25  8:11 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: Greg KH, arnd, svadivu, aneesh, Santosh Shilimkar, 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.

Signed-off-by: Felipe Balbi <balbi@ti.com>
---
 drivers/misc/emif.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/misc/emif.c b/drivers/misc/emif.c
index 36fda8e..8725ea9 100644
--- a/drivers/misc/emif.c
+++ b/drivers/misc/emif.c
@@ -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");
-- 
1.7.10.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-25  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-25  8:11 [PATCH] misc: emif: fix compilation error Felipe Balbi
2012-05-25  9:10 ` Shilimkar, Santosh
2012-05-25  9:29   ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®