Use i2c_add_driver as it will add THIS_MODULE for us.

Signed-off-by: Andrew F. Davis <[email protected]>
---
 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 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);
 
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to