]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/host/imx21-hcd.c
Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groec...
[~andy/linux] / drivers / usb / host / imx21-hcd.c
index dbf0f156ed9e6ea2e2e2d761f68592dfa40b2b3b..ff471c1c165ed0977c2d0175abed4cfe509f8674 100644 (file)
@@ -1924,18 +1924,7 @@ static struct platform_driver imx21_hcd_driver = {
        .resume = NULL,
 };
 
-static int __init imx21_hcd_init(void)
-{
-       return platform_driver_register(&imx21_hcd_driver);
-}
-
-static void __exit imx21_hcd_cleanup(void)
-{
-       platform_driver_unregister(&imx21_hcd_driver);
-}
-
-module_init(imx21_hcd_init);
-module_exit(imx21_hcd_cleanup);
+module_platform_driver(imx21_hcd_driver);
 
 MODULE_DESCRIPTION("i.MX21 USB Host controller");
 MODULE_AUTHOR("Martin Fuzzey");