Commit aa5b477d authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Greg Kroah-Hartman

usb: misc: usb3503: Use i2c_add_driver helper macro

Use i2c_add_driver as it will add THIS_MODULE for us.
Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 164f0aa8
...@@ -410,7 +410,7 @@ static int __init usb3503_init(void) ...@@ -410,7 +410,7 @@ static int __init usb3503_init(void)
{ {
int err; int err;
err = i2c_register_driver(THIS_MODULE, &usb3503_i2c_driver); err = i2c_add_driver(&usb3503_i2c_driver);
if (err != 0) if (err != 0)
pr_err("usb3503: Failed to register I2C driver: %d\n", err); pr_err("usb3503: Failed to register I2C driver: %d\n", err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment