diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-02-10 12:06:09 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-03-06 19:08:06 -0500 |
commit | 30be774b38d845791b1acbd750f19e56c57f0185 (patch) | |
tree | 9c7fddeab268dda58e1de76b77e54c5b5febf1f5 /drivers/i2c | |
parent | c8e043e6f717b0256b1cfc55d03c232e8a5c8cbd (diff) |
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 d33474422003..036d9bdc0aaa 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) | |||
71 | if (!dev || !dev->dev) | 71 | if (!dev || !dev->dev) |
72 | return -ENODEV; | 72 | return -ENODEV; |
73 | 73 | ||
74 | if (!dev->acquire_lock) | 74 | if (!dev->release_lock) |
75 | return 0; | 75 | return 0; |
76 | 76 | ||
77 | /* host driver writes to side band semaphore register */ | 77 | /* host driver writes to side band semaphore register */ |