[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1367229812-30574-5-git-send-email-kishon@ti.com>
Date: Mon, 29 Apr 2013 15:33:27 +0530
From: Kishon Vijay Abraham I <kishon@...com>
To: <grant.likely@...aro.org>, <tony@...mide.com>, <balbi@...com>,
<kishon@...com>, <arnd@...db.de>, <swarren@...dia.com>,
<linux-kernel@...r.kernel.org>, <linux-omap@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-usb@...r.kernel.org>, <sylvester.nawrocki@...il.com>
CC: <rob.herring@...xeda.com>, <rob@...dley.net>, <b-cousson@...com>,
<linux@....linux.org.uk>, <gregkh@...uxfoundation.org>,
<benoit.cousson@...aro.org>, <mchehab@...hat.com>,
<akpm@...ux-foundation.org>, <cesarb@...arb.net>,
<davem@...emloft.net>, <rnayak@...com>, <shawn.guo@...aro.org>,
<santosh.shilimkar@...com>, <devicetree-discuss@...ts.ozlabs.org>,
<linux-doc@...r.kernel.org>, <nsekhar@...com>
Subject: [PATCH v6 4/9] usb: phy: twl4030: twl4030 shouldn't be subsys_initcall
Changed the inticall from subsys_initcall to module_init for
twl4030-usb.
Signed-off-by: Kishon Vijay Abraham I <kishon@...com>
---
drivers/usb/phy/phy-twl4030-usb.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/usb/phy/phy-twl4030-usb.c b/drivers/usb/phy/phy-twl4030-usb.c
index ef6eadf..dacbeb1 100644
--- a/drivers/usb/phy/phy-twl4030-usb.c
+++ b/drivers/usb/phy/phy-twl4030-usb.c
@@ -820,17 +820,7 @@ static struct platform_driver twl4030_usb_driver = {
},
};
-static int __init twl4030_usb_init(void)
-{
- return platform_driver_register(&twl4030_usb_driver);
-}
-subsys_initcall(twl4030_usb_init);
-
-static void __exit twl4030_usb_exit(void)
-{
- platform_driver_unregister(&twl4030_usb_driver);
-}
-module_exit(twl4030_usb_exit);
+module_platform_driver(twl4030_usb_driver);
MODULE_ALIAS("platform:twl4030_usb");
MODULE_AUTHOR("Texas Instruments, Inc, Nokia Corporation");
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists