projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
164f0aa
)
usb: misc: usb3503: Use i2c_add_driver helper macro
author
Andrew F. Davis
<afd@ti.com>
Thu, 22 Oct 2015 19:11:11 +0000
(14:11 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:53:53 +0000
(19:53 -0700)
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>
drivers/usb/misc/usb3503.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/misc/usb3503.c
b/drivers/usb/misc/usb3503.c
index 64ff5b91752d2187c0c949927dfa311b49531460..b45cb77c0744599a2ae7f77a12f3e014a59cba7a 100644
(file)
--- 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);