aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/i2c/i2c-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index f7cd05b4f327..e4fe4940fd82 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -1231,7 +1231,7 @@ int i2c_del_adapter(struct i2c_adapter *adap)
1231 if (found != adap) { 1231 if (found != adap) {
1232 pr_debug("i2c-core: attempting to delete unregistered " 1232 pr_debug("i2c-core: attempting to delete unregistered "
1233 "adapter [%s]\n", adap->name); 1233 "adapter [%s]\n", adap->name);
1234 return -EINVAL; 1234 return 0;
1235 } 1235 }
1236 1236
1237 /* Tell drivers about this removal */ 1237 /* Tell drivers about this removal */