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>
This commit is contained in:
Andrew F. Davis 2015-10-22 14:11:11 -05:00 committed by Greg Kroah-Hartman
parent 164f0aa872
commit aa5b477db5

View File

@ -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);