diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-10 19:37:14 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-10-15 15:29:51 +0300 |
commit | 01380c081eada4fa4a2e52ef9ea2b16eaddbfc46 (patch) | |
tree | fe49e72b5bef8e66074f7a957fa17cc8a59ed8d1 /drivers/usb/musb/tusb6010.c | |
parent | 8d92f6d46c73bbc10310a38784f130527dfcf8a1 (diff) | |
download | linux-01380c081eada4fa4a2e52ef9ea2b16eaddbfc46.tar.gz linux-01380c081eada4fa4a2e52ef9ea2b16eaddbfc46.tar.bz2 linux-01380c081eada4fa4a2e52ef9ea2b16eaddbfc46.zip |
usb: musb: tusb6010: use module_platform_driver macro
This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/tusb6010.c')
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index dc4d75ea13ad..39ece28019fd 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c @@ -1251,15 +1251,4 @@ static struct platform_driver tusb_driver = { MODULE_DESCRIPTION("TUSB6010 MUSB Glue Layer"); MODULE_AUTHOR("Felipe Balbi <balbi@ti.com>"); MODULE_LICENSE("GPL v2"); - -static int __init tusb_init(void) -{ - return platform_driver_register(&tusb_driver); -} -module_init(tusb_init); - -static void __exit tusb_exit(void) -{ - platform_driver_unregister(&tusb_driver); -} -module_exit(tusb_exit); +module_platform_driver(tusb_driver); |