usb: converto drivers/usb/* to use module_platform_driver_probe()
This patch converts the drivers in drivers/usb/* to use the module_platform_driver_probe() macro which makes the code smaller and a bit simpler. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Felipe Balbi <balbi@ti.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Eric Miao <eric.y.miao@gmail.com> Cc: Russell King <linux@arm.linux.org.uk> Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
1cb9204cc6
commit
52f7a82b59
@@ -3458,17 +3458,7 @@ static struct platform_driver lpc32xx_udc_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init udc_init_module(void)
|
||||
{
|
||||
return platform_driver_probe(&lpc32xx_udc_driver, lpc32xx_udc_probe);
|
||||
}
|
||||
module_init(udc_init_module);
|
||||
|
||||
static void __exit udc_exit_module(void)
|
||||
{
|
||||
platform_driver_unregister(&lpc32xx_udc_driver);
|
||||
}
|
||||
module_exit(udc_exit_module);
|
||||
module_platform_driver_probe(lpc32xx_udc_driver, lpc32xx_udc_probe);
|
||||
|
||||
MODULE_DESCRIPTION("LPC32XX udc driver");
|
||||
MODULE_AUTHOR("Kevin Wells <kevin.wells@nxp.com>");
|
||||
|
Reference in New Issue
Block a user