Commit 55af716b authored by Hiroshi DOYU's avatar Hiroshi DOYU Committed by Tony Lindgren

ARM:OMAP: fix driver MODULE_ALIAS()

Add a correct MODULE_ALIAS() entry for this driver to enable udev module
loading.
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent fde20fbe
...@@ -350,6 +350,7 @@ static struct platform_driver omap_kp_driver = { ...@@ -350,6 +350,7 @@ static struct platform_driver omap_kp_driver = {
.remove = omap_kp_remove, .remove = omap_kp_remove,
.driver = { .driver = {
.name = "omap_twl4030keypad", .name = "omap_twl4030keypad",
.owner = THIS_MODULE,
}, },
}; };
...@@ -371,3 +372,4 @@ module_exit(omap_kp_exit); ...@@ -371,3 +372,4 @@ module_exit(omap_kp_exit);
MODULE_AUTHOR("Texas Instruments"); MODULE_AUTHOR("Texas Instruments");
MODULE_DESCRIPTION("OMAP TWL4030 Keypad Driver"); MODULE_DESCRIPTION("OMAP TWL4030 Keypad Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:omap_twl4030keypad");
...@@ -733,4 +733,4 @@ module_exit(tsc2005_exit); ...@@ -733,4 +733,4 @@ module_exit(tsc2005_exit);
MODULE_AUTHOR("Lauri Leukkunen <lauri.leukkunen@nokia.com>"); MODULE_AUTHOR("Lauri Leukkunen <lauri.leukkunen@nokia.com>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:tsc2005");
...@@ -1009,6 +1009,7 @@ static struct platform_driver omap_mmc_driver = { ...@@ -1009,6 +1009,7 @@ static struct platform_driver omap_mmc_driver = {
.resume = omap_mmc_resume, .resume = omap_mmc_resume,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
}; };
...@@ -1029,5 +1030,5 @@ module_exit(omap_mmc_cleanup); ...@@ -1029,5 +1030,5 @@ module_exit(omap_mmc_cleanup);
MODULE_DESCRIPTION("OMAP High Speed Multimedia Card driver"); MODULE_DESCRIPTION("OMAP High Speed Multimedia Card driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS(DRIVER_NAME); MODULE_ALIAS("platform:" DRIVER_NAME);
MODULE_AUTHOR("Texas Instruments Inc"); MODULE_AUTHOR("Texas Instruments Inc");
...@@ -624,7 +624,7 @@ static int twl4030_rtc_resume(struct platform_device *pdev) ...@@ -624,7 +624,7 @@ static int twl4030_rtc_resume(struct platform_device *pdev)
#define twl4030_rtc_resume NULL #define twl4030_rtc_resume NULL
#endif #endif
MODULE_ALIAS("twl4030_rtc"); MODULE_ALIAS("platform:twl4030_rtc");
static struct platform_driver twl4030rtc_driver = { static struct platform_driver twl4030rtc_driver = {
.probe = twl4030_rtc_probe, .probe = twl4030_rtc_probe,
.remove = __devexit_p(twl4030_rtc_remove), .remove = __devexit_p(twl4030_rtc_remove),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment