diff options
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 | } |