diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/i2c-core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index d16b4998c4c2..a1c5dff85431 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -497,14 +497,9 @@ int i2c_use_client(struct i2c_client *client) | |||
497 | if (ret) | 497 | if (ret) |
498 | return ret; | 498 | return ret; |
499 | 499 | ||
500 | if (client->usage_count > 0) | ||
501 | goto busy; | ||
502 | client->usage_count++; | 500 | client->usage_count++; |
503 | 501 | ||
504 | return 0; | 502 | return 0; |
505 | busy: | ||
506 | i2c_dec_use_client(client); | ||
507 | return -EBUSY; | ||
508 | } | 503 | } |
509 | 504 | ||
510 | int i2c_release_client(struct i2c_client *client) | 505 | int i2c_release_client(struct i2c_client *client) |