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 /Documentation/i2c/writing-clients | |
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 'Documentation/i2c/writing-clients')
-rw-r--r-- | Documentation/i2c/writing-clients | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Documentation/i2c/writing-clients b/Documentation/i2c/writing-clients index e62fbfa1282d..f7e04ec849b1 100644 --- a/Documentation/i2c/writing-clients +++ b/Documentation/i2c/writing-clients | |||
@@ -586,10 +586,7 @@ the driver module is usually enough. | |||
586 | void foo_cleanup(void) | 586 | void foo_cleanup(void) |
587 | { | 587 | { |
588 | if (foo_initialized == 1) { | 588 | if (foo_initialized == 1) { |
589 | if ((res = i2c_del_driver(&foo_driver))) { | 589 | i2c_del_driver(&foo_driver); |
590 | printk("foo: Driver registration failed, module not removed.\n"); | ||
591 | return; | ||
592 | } | ||
593 | foo_initialized --; | 590 | foo_initialized --; |
594 | } | 591 | } |
595 | } | 592 | } |