From aa5b477db5826e9922c4fe78ccf53fb2df039367 Mon Sep 17 00:00:00 2001 From: "Andrew F. Davis" Date: Thu, 22 Oct 2015 14:11:11 -0500 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/usb/misc/usb3503.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);