public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ARM:OMAP: fix driver MODULE_ALIAS()
@ 2008-06-12  7:40 Hiroshi DOYU
  2008-06-23 10:38 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Hiroshi DOYU @ 2008-06-12  7:40 UTC (permalink / raw)
  To: linux-omap; +Cc: Hiroshi DOYU

Add a correct MODULE_ALIAS() entry for this driver to enable udev module
loading.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
---
 drivers/input/keyboard/omap-twl4030keypad.c |    2 ++
 drivers/input/touchscreen/tsc2005.c         |    2 +-
 drivers/mmc/host/omap_hsmmc.c               |    3 ++-
 drivers/rtc/rtc-twl4030.c                   |    2 +-
 4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/input/keyboard/omap-twl4030keypad.c b/drivers/input/keyboard/omap-twl4030keypad.c
index 0344b4c..fc5d44e 100644
--- a/drivers/input/keyboard/omap-twl4030keypad.c
+++ b/drivers/input/keyboard/omap-twl4030keypad.c
@@ -350,6 +350,7 @@ static struct platform_driver omap_kp_driver = {
 	.remove		= omap_kp_remove,
 	.driver		= {
 		.name	= "omap_twl4030keypad",
+		.owner	= THIS_MODULE,
 	},
 };
 
@@ -371,3 +372,4 @@ module_exit(omap_kp_exit);
 MODULE_AUTHOR("Texas Instruments");
 MODULE_DESCRIPTION("OMAP TWL4030 Keypad Driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:omap_twl4030keypad");
diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c
index fa01799..93dc3c5 100644
--- a/drivers/input/touchscreen/tsc2005.c
+++ b/drivers/input/touchscreen/tsc2005.c
@@ -734,4 +734,4 @@ module_exit(tsc2005_exit);
 
 MODULE_AUTHOR("Lauri Leukkunen <lauri.leukkunen@nokia.com>");
 MODULE_LICENSE("GPL");
-
+MODULE_ALIAS("platform:tsc2005");
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 9c18c15..d399dca 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -1106,6 +1106,7 @@ static struct platform_driver omap_mmc_driver = {
 	.resume		= omap_mmc_resume,
 	.driver		= {
 		.name = DRIVER_NAME,
+		.owner = THIS_MODULE,
 	},
 };
 
@@ -1126,5 +1127,5 @@ module_exit(omap_mmc_cleanup);
 
 MODULE_DESCRIPTION("OMAP High Speed Multimedia Card driver");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS(DRIVER_NAME);
+MODULE_ALIAS("platform:" DRIVER_NAME);
 MODULE_AUTHOR("Texas Instruments Inc");
diff --git a/drivers/rtc/rtc-twl4030.c b/drivers/rtc/rtc-twl4030.c
index ef0e175..7b0a4c5 100644
--- a/drivers/rtc/rtc-twl4030.c
+++ b/drivers/rtc/rtc-twl4030.c
@@ -624,7 +624,7 @@ static int twl4030_rtc_resume(struct platform_device *pdev)
 #define twl4030_rtc_resume  NULL
 #endif
 
-MODULE_ALIAS("twl4030_rtc");
+MODULE_ALIAS("platform:twl4030_rtc");
 static struct platform_driver twl4030rtc_driver = {
 	.probe 		= twl4030_rtc_probe,
 	.remove 	= __devexit_p(twl4030_rtc_remove),
-- 
1.5.5.1.357.g1af8b


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

* Re: [PATCH 1/1] ARM:OMAP: fix driver MODULE_ALIAS()
  2008-06-12  7:40 [PATCH 1/1] ARM:OMAP: fix driver MODULE_ALIAS() Hiroshi DOYU
@ 2008-06-23 10:38 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2008-06-23 10:38 UTC (permalink / raw)
  To: Hiroshi DOYU; +Cc: linux-omap

* Hiroshi DOYU <Hiroshi.DOYU@nokia.com> [080613 02:53]:
> Add a correct MODULE_ALIAS() entry for this driver to enable udev module
> loading.

Pushing today.

Tony

> 
> Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
> ---
>  drivers/input/keyboard/omap-twl4030keypad.c |    2 ++
>  drivers/input/touchscreen/tsc2005.c         |    2 +-
>  drivers/mmc/host/omap_hsmmc.c               |    3 ++-
>  drivers/rtc/rtc-twl4030.c                   |    2 +-
>  4 files changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/input/keyboard/omap-twl4030keypad.c b/drivers/input/keyboard/omap-twl4030keypad.c
> index 0344b4c..fc5d44e 100644
> --- a/drivers/input/keyboard/omap-twl4030keypad.c
> +++ b/drivers/input/keyboard/omap-twl4030keypad.c
> @@ -350,6 +350,7 @@ static struct platform_driver omap_kp_driver = {
>  	.remove		= omap_kp_remove,
>  	.driver		= {
>  		.name	= "omap_twl4030keypad",
> +		.owner	= THIS_MODULE,
>  	},
>  };
>  
> @@ -371,3 +372,4 @@ module_exit(omap_kp_exit);
>  MODULE_AUTHOR("Texas Instruments");
>  MODULE_DESCRIPTION("OMAP TWL4030 Keypad Driver");
>  MODULE_LICENSE("GPL");
> +MODULE_ALIAS("platform:omap_twl4030keypad");
> diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c
> index fa01799..93dc3c5 100644
> --- a/drivers/input/touchscreen/tsc2005.c
> +++ b/drivers/input/touchscreen/tsc2005.c
> @@ -734,4 +734,4 @@ module_exit(tsc2005_exit);
>  
>  MODULE_AUTHOR("Lauri Leukkunen <lauri.leukkunen@nokia.com>");
>  MODULE_LICENSE("GPL");
> -
> +MODULE_ALIAS("platform:tsc2005");
> diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
> index 9c18c15..d399dca 100644
> --- a/drivers/mmc/host/omap_hsmmc.c
> +++ b/drivers/mmc/host/omap_hsmmc.c
> @@ -1106,6 +1106,7 @@ static struct platform_driver omap_mmc_driver = {
>  	.resume		= omap_mmc_resume,
>  	.driver		= {
>  		.name = DRIVER_NAME,
> +		.owner = THIS_MODULE,
>  	},
>  };
>  
> @@ -1126,5 +1127,5 @@ module_exit(omap_mmc_cleanup);
>  
>  MODULE_DESCRIPTION("OMAP High Speed Multimedia Card driver");
>  MODULE_LICENSE("GPL");
> -MODULE_ALIAS(DRIVER_NAME);
> +MODULE_ALIAS("platform:" DRIVER_NAME);
>  MODULE_AUTHOR("Texas Instruments Inc");
> diff --git a/drivers/rtc/rtc-twl4030.c b/drivers/rtc/rtc-twl4030.c
> index ef0e175..7b0a4c5 100644
> --- a/drivers/rtc/rtc-twl4030.c
> +++ b/drivers/rtc/rtc-twl4030.c
> @@ -624,7 +624,7 @@ static int twl4030_rtc_resume(struct platform_device *pdev)
>  #define twl4030_rtc_resume  NULL
>  #endif
>  
> -MODULE_ALIAS("twl4030_rtc");
> +MODULE_ALIAS("platform:twl4030_rtc");
>  static struct platform_driver twl4030rtc_driver = {
>  	.probe 		= twl4030_rtc_probe,
>  	.remove 	= __devexit_p(twl4030_rtc_remove),
> -- 
> 1.5.5.1.357.g1af8b
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2008-06-23 10:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-12  7:40 [PATCH 1/1] ARM:OMAP: fix driver MODULE_ALIAS() Hiroshi DOYU
2008-06-23 10:38 ` Tony Lindgren

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