OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2829823
)
[PATCH] windfarm_smu_sat.c: simplify around i2c_add_driver()
author
Alexey Dobriyan
<adobriyan@gmail.com>
Fri, 29 Sep 2006 09:00:58 +0000
(
02:00
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:19 +0000
(09:18 -0700)
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>
drivers/macintosh/windfarm_smu_sat.c
patch
|
blob
|
history
diff --git
a/drivers/macintosh/windfarm_smu_sat.c
b/drivers/macintosh/windfarm_smu_sat.c
index
aceb61d
..
83f79de
100644
(file)
--- 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)
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)