diff options
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 85e2e919d1cd..dfd7bc8094bf 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -1509,7 +1509,7 @@ struct i2c_adapter* i2c_get_adapter(int id) | |||
1509 | struct i2c_adapter *adapter; | 1509 | struct i2c_adapter *adapter; |
1510 | 1510 | ||
1511 | mutex_lock(&core_lock); | 1511 | mutex_lock(&core_lock); |
1512 | adapter = (struct i2c_adapter *)idr_find(&i2c_adapter_idr, id); | 1512 | adapter = idr_find(&i2c_adapter_idr, id); |
1513 | if (adapter && !try_module_get(adapter->owner)) | 1513 | if (adapter && !try_module_get(adapter->owner)) |
1514 | adapter = NULL; | 1514 | adapter = NULL; |
1515 | 1515 | ||