Re: [PATCH] twl4030-usb: rename twl4030_driver to twl4030_usb_driver.

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

 



* Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@xxxxxx> [081014 11:08]:
> The i2c_driver in twl4030-core.c and platform_driver of twl4030-usb.c
> both has the name twl4030_driver. This leads to unnecessary confusion.
> 
> So rename the usb platform_driver appropriately to:
> twl4030_usb_driver.

Dave, is this OK with you? I don't want this to get out of sync with
mainline..

Tony

> 
> Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@xxxxxx>
> Index: linux-omap-git/drivers/i2c/chips/twl4030-usb.c
> ===================================================================
> --- linux-omap-git.orig/drivers/i2c/chips/twl4030-usb.c	2008-10-10 20:35:15.000000000 +0530
> +++ linux-omap-git/drivers/i2c/chips/twl4030-usb.c	2008-10-14 11:01:09.785700607 +0530
> @@ -758,7 +758,7 @@ static int __exit twl4030_usb_remove(str
>  	return 0;
>  }
>  
> -static struct platform_driver twl4030_driver = {
> +static struct platform_driver twl4030_usb_driver = {
>  	.probe		= twl4030_usb_probe,
>  	.remove		= __exit_p(twl4030_remove),
>  	.driver		= {
> @@ -769,13 +769,13 @@ static struct platform_driver twl4030_dr
>  
>  static int __init twl4030_usb_init(void)
>  {
> -	return platform_driver_register(&twl4030_driver);
> +	return platform_driver_register(&twl4030_usb_driver);
>  }
>  subsys_initcall(twl4030_usb_init);
>  
>  static void __exit twl4030_usb_exit(void)
>  {
> -	platform_driver_unregister(&twl4030_driver);
> +	platform_driver_unregister(&twl4030_usb_driver);
>  }
>  module_exit(twl4030_usb_exit);
>  
--
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