Commit 0404ae03 authored by Philipp Zabel's avatar Philipp Zabel Committed by Greg Kroah-Hartman

usb: chipidea: usbmisc: use module_platform_driver

This patch converts the driver to use the module_platform_driver
macro which makes the code smaller and a bit simpler.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarMichael Grzeschik <mgr@pengutronix.de>
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f6a3b3a3
...@@ -243,17 +243,7 @@ static struct platform_driver usbmisc_imx_driver = { ...@@ -243,17 +243,7 @@ static struct platform_driver usbmisc_imx_driver = {
}, },
}; };
static int usbmisc_imx_drv_init(void) module_platform_driver(usbmisc_imx_driver);
{
return platform_driver_register(&usbmisc_imx_driver);
}
subsys_initcall(usbmisc_imx_drv_init);
static void usbmisc_imx_drv_exit(void)
{
platform_driver_unregister(&usbmisc_imx_driver);
}
module_exit(usbmisc_imx_drv_exit);
MODULE_ALIAS("platform:usbmisc-imx"); MODULE_ALIAS("platform:usbmisc-imx");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
......
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