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:
Andy Shevchenko 2015-02-10 19:06:09 +02:00 • committed by Wolfram Sang
commit 30be774b38

View file

@ -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 */