summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2015-10-22 14:11:11 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-24 19:53:53 -0700
commitaa5b477db5826e9922c4fe78ccf53fb2df039367 (patch)
tree261a86cf948802ea3ac05320dd293af44979a5a6 /drivers/usb
parent164f0aa87232b85c17181922a28c3f410ea9a32b (diff)
downloadlinux-aa5b477db5826e9922c4fe78ccf53fb2df039367.tar.bz2
usb: misc: usb3503: Use i2c_add_driver helper macro
Use i2c_add_driver as it will add THIS_MODULE for us. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/misc/usb3503.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c
index 64ff5b91752d..b45cb77c0744 100644
--- a/drivers/usb/misc/usb3503.c
+++ b/drivers/usb/misc/usb3503.c
@@ -410,7 +410,7 @@ static int __init usb3503_init(void)
{
int err;
- err = i2c_register_driver(THIS_MODULE, &usb3503_i2c_driver);
+ err = i2c_add_driver(&usb3503_i2c_driver);
if (err != 0)
pr_err("usb3503: Failed to register I2C driver: %d\n", err);