Commit 30be774b38d845791b1acbd750f19e56c57f0185

Authored by Andy Shevchenko
Committed by Wolfram Sang
1 parent c8e043e6f7

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/i2c/busses/i2c-designware-baytrail.c
... ... @@ -71,7 +71,7 @@
71 71 if (!dev || !dev->dev)
72 72 return -ENODEV;
73 73  
74   - if (!dev->acquire_lock)
  74 + if (!dev->release_lock)
75 75 return 0;
76 76  
77 77 /* host driver writes to side band semaphore register */