summaryrefslogtreecommitdiff
path: root/drivers/usb/misc
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2015-10-22 19:11:11 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-25 02:53:53 (GMT)
commitaa5b477db5826e9922c4fe78ccf53fb2df039367 (patch)
tree261a86cf948802ea3ac05320dd293af44979a5a6 /drivers/usb/misc
parent164f0aa87232b85c17181922a28c3f410ea9a32b (diff)
downloadlinux-aa5b477db5826e9922c4fe78ccf53fb2df039367.tar.xz
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/misc')
-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 64ff5b9..b45cb77 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);