diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-11 11:23:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 14:48:10 -0400 |
commit | 8244ac043c5334012006d542d1cd5c1e3fe2f32a (patch) | |
tree | 9bf3216e8f65e66d83bbd073c6a87bd63d45beda /drivers/usb/misc/usb3503.c | |
parent | 07cd29d76532acc6a9148074c3915c02cdd709d9 (diff) |
USB: misc: usb3503: use module_i2c_driver to simplify the code
Use the module_i2c_driver() macro to make the code smaller
and a bit simpler.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/usb3503.c')
-rw-r--r-- | drivers/usb/misc/usb3503.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index f713f6aeb6e5..d3a1cce1bf9c 100644 --- a/drivers/usb/misc/usb3503.c +++ b/drivers/usb/misc/usb3503.c | |||
@@ -307,18 +307,7 @@ static struct i2c_driver usb3503_driver = { | |||
307 | .id_table = usb3503_id, | 307 | .id_table = usb3503_id, |
308 | }; | 308 | }; |
309 | 309 | ||
310 | static int __init usb3503_init(void) | 310 | module_i2c_driver(usb3503_driver); |
311 | { | ||
312 | return i2c_add_driver(&usb3503_driver); | ||
313 | } | ||
314 | |||
315 | static void __exit usb3503_exit(void) | ||
316 | { | ||
317 | i2c_del_driver(&usb3503_driver); | ||
318 | } | ||
319 | |||
320 | module_init(usb3503_init); | ||
321 | module_exit(usb3503_exit); | ||
322 | 311 | ||
323 | MODULE_AUTHOR("Dongjin Kim <tobetter@gmail.com>"); | 312 | MODULE_AUTHOR("Dongjin Kim <tobetter@gmail.com>"); |
324 | MODULE_DESCRIPTION("USB3503 USB HUB driver"); | 313 | MODULE_DESCRIPTION("USB3503 USB HUB driver"); |