mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
i2c: designware-baytrail: cross-check lock functions
It seems the idea behind the cross-check is to prevent acquire semaphore when there is no release callback and vice versa. Thus, patch fixes a typo. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: David E. Box <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
c8e043e6f7
commit
30be774b38
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ static int baytrail_i2c_acquire(struct dw_i2c_dev *dev)
|
|||
if (!dev || !dev->dev)
|
||||
return -ENODEV;
|
||||
|
||||
if (!dev->acquire_lock)
|
||||
if (!dev->release_lock)
|
||||
return 0;
|
||||
|
||||
/* host driver writes to side band semaphore register */
|
||||
|
|
|
|||
Loading…
Reference in a new issue