Re: [PATCH 1/1] ARM:OMAP: fix driver MODULE_ALIAS()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Hiroshi DOYU <Hiroshi.DOYU@xxxxxxxxx> [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@xxxxxxxxx>
> ---
>  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@xxxxxxxxx>");
>  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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux