diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-05-01 23:26:32 +0200 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-05-01 23:26:32 +0200 |
commit | b3e820968ad47219f7d559117a30e85cf96b4e4e (patch) | |
tree | 84e5ae3275cea6fa5074b0c9b08eaada55f02bea /include | |
parent | a97f1ed090fc01a5876a7caf2cbdf93470436201 (diff) | |
download | kernel_samsung_tuna-b3e820968ad47219f7d559117a30e85cf96b4e4e.zip kernel_samsung_tuna-b3e820968ad47219f7d559117a30e85cf96b4e4e.tar.gz kernel_samsung_tuna-b3e820968ad47219f7d559117a30e85cf96b4e4e.tar.bz2 |
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 'include')
-rw-r--r-- | include/linux/i2c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 3af7111..3fe2ad3 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -371,7 +371,7 @@ extern int i2c_del_adapter(struct i2c_adapter *); extern int i2c_add_numbered_adapter(struct i2c_adapter *); extern int i2c_register_driver(struct module *, struct i2c_driver *); -extern int i2c_del_driver(struct i2c_driver *); +extern void i2c_del_driver(struct i2c_driver *); static inline int i2c_add_driver(struct i2c_driver *driver) { |