diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-02-10 17:06:09 (GMT) |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-03-07 00:08:06 (GMT) |
commit | 30be774b38d845791b1acbd750f19e56c57f0185 (patch) | |
tree | 9c7fddeab268dda58e1de76b77e54c5b5febf1f5 /drivers/i2c | |
parent | c8e043e6f717b0256b1cfc55d03c232e8a5c8cbd (diff) | |
download | linux-30be774b38d845791b1acbd750f19e56c57f0185.tar.xz |
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 <andriy.shevchenko@linux.intel.com>
Acked-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-baytrail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-designware-baytrail.c b/drivers/i2c/busses/i2c-designware-baytrail.c index d334744..036d9bdc0 100644 --- a/drivers/i2c/busses/i2c-designware-baytrail.c +++ b/drivers/i2c/busses/i2c-designware-baytrail.c @@ -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 */ |