diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-09-29 05:00:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 12:18:19 -0400 |
commit | 92e9a8507ba81ff9e25bd9c5030ff8586269eefb (patch) | |
tree | 40c7f1ab30ac5a0e0966d1673e00dec753242eb4 /drivers | |
parent | 28298232a15c48ea9835d5d24577cde87923e55c (diff) |
[PATCH] windfarm_smu_sat.c: simplify around i2c_add_driver()
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/macintosh/windfarm_smu_sat.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/macintosh/windfarm_smu_sat.c b/drivers/macintosh/windfarm_smu_sat.c index aceb61d9fbc8..83f79de7174b 100644 --- a/drivers/macintosh/windfarm_smu_sat.c +++ b/drivers/macintosh/windfarm_smu_sat.c | |||
@@ -397,12 +397,7 @@ static int wf_sat_detach(struct i2c_client *client) | |||
397 | 397 | ||
398 | static int __init sat_sensors_init(void) | 398 | static int __init sat_sensors_init(void) |
399 | { | 399 | { |
400 | int err; | 400 | return i2c_add_driver(&wf_sat_driver); |
401 | |||
402 | err = i2c_add_driver(&wf_sat_driver); | ||
403 | if (err < 0) | ||
404 | return err; | ||
405 | return 0; | ||
406 | } | 401 | } |
407 | 402 | ||
408 | static void __exit sat_sensors_exit(void) | 403 | static void __exit sat_sensors_exit(void) |