Commit 259aada436e13ec75a8b0f252a78e6577879008e
Committed by
Wolfram Sang
1 parent
9b5c9f043e
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
i2c: designware-baytrail: fix typo in error path
It seems we have same message for different return values in get_sem() and baytrail_i2c_acquire(). I suspect this is just a typo, so this patch fixes it. 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 2 additions and 2 deletions Side-by-side Diff
drivers/i2c/busses/i2c-designware-baytrail.c
... | ... | @@ -99,8 +99,8 @@ |
99 | 99 | reset_semaphore(dev->dev); |
100 | 100 | |
101 | 101 | ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, |
102 | - PUNIT_SEMAPHORE, &sem); | |
103 | - if (!ret) | |
102 | + PUNIT_SEMAPHORE, &sem); | |
103 | + if (ret) | |
104 | 104 | dev_err(dev->dev, "iosf failed to read punit semaphore\n"); |
105 | 105 | else |
106 | 106 | dev_err(dev->dev, "PUNIT SEM: %d\n", sem); |