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>
This commit is contained in:
Jean Delvare
2007-05-01 23:26:32 +02:00
committed by Jean Delvare
parent a97f1ed090
commit b3e820968a
4 changed files with 7 additions and 15 deletions

View File

@@ -586,10 +586,7 @@ the driver module is usually enough.
void foo_cleanup(void)
{
if (foo_initialized == 1) {
if ((res = i2c_del_driver(&foo_driver))) {
printk("foo: Driver registration failed, module not removed.\n");
return;
}
i2c_del_driver(&foo_driver);
foo_initialized --;
}
}