diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-05-01 17:26:32 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-05-01 17:26:32 -0400 |
commit | b3e820968ad47219f7d559117a30e85cf96b4e4e (patch) | |
tree | 84e5ae3275cea6fa5074b0c9b08eaada55f02bea /drivers/macintosh | |
parent | a97f1ed090fc01a5876a7caf2cbdf93470436201 (diff) |
i2c: Make i2c_del_driver a void function
Make i2c_del_driver a void function, like all other driver removal
functions. It always returned 0 even when errors occured, and nobody
ever actually checked the return value anyway. And we cannot fail
a module removal anyway.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/therm_windtunnel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index 35233de460ad..3d0354e96a97 100644 --- a/drivers/macintosh/therm_windtunnel.c +++ b/drivers/macintosh/therm_windtunnel.c | |||
@@ -459,7 +459,8 @@ therm_of_probe( struct of_device *dev, const struct of_device_id *match ) | |||
459 | static int | 459 | static int |
460 | therm_of_remove( struct of_device *dev ) | 460 | therm_of_remove( struct of_device *dev ) |
461 | { | 461 | { |
462 | return i2c_del_driver( &g4fan_driver ); | 462 | i2c_del_driver( &g4fan_driver ); |
463 | return 0; | ||
463 | } | 464 | } |
464 | 465 | ||
465 | static struct of_device_id therm_of_match[] = {{ | 466 | static struct of_device_id therm_of_match[] = {{ |