[PATCH] misc: emif: fix compilation error

From: Felipe Balbi
Date: Fri May 25 2012 - 04:13:14 EST


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@xxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/