mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
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:
parent
164f0aa872
commit
aa5b477db5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user