mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] windfarm_smu_sat.c: simplify around i2c_add_driver()
Signed-off-by: Alexey Dobriyan <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
28298232a1
commit
92e9a8507b
1 changed files with 1 additions and 6 deletions
|
|
@ -397,12 +397,7 @@ static int wf_sat_detach(struct i2c_client *client)
|
|||
|
||||
static int __init sat_sensors_init(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = i2c_add_driver(&wf_sat_driver);
|
||||
if (err < 0)
|
||||
return err;
|
||||
return 0;
|
||||
return i2c_add_driver(&wf_sat_driver);
|
||||
}
|
||||
|
||||
static void __exit sat_sensors_exit(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue