aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-02-10 12:06:07 -0500
committerWolfram Sang <wsa@the-dreams.de>2015-03-06 19:07:27 -0500
commit259aada436e13ec75a8b0f252a78e6577879008e (patch)
tree388a83a11aacfaeaef7f88ae214b12059f7f313a /drivers/i2c
parent9b5c9f043e7a70665b2eb092f316d5d5cd238d49 (diff)
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-designware-baytrail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-designware-baytrail.c b/drivers/i2c/busses/i2c-designware-baytrail.c
index e9cb3555dc79..9b6765554c70 100644
--- a/drivers/i2c/busses/i2c-designware-baytrail.c
+++ b/drivers/i2c/busses/i2c-designware-baytrail.c
@@ -99,8 +99,8 @@ int baytrail_i2c_acquire(struct dw_i2c_dev *dev)
99 reset_semaphore(dev->dev); 99 reset_semaphore(dev->dev);
100 100
101 ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, 101 ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
102 PUNIT_SEMAPHORE, &sem); 102 PUNIT_SEMAPHORE, &sem);
103 if (!ret) 103 if (ret)
104 dev_err(dev->dev, "iosf failed to read punit semaphore\n"); 104 dev_err(dev->dev, "iosf failed to read punit semaphore\n");
105 else 105 else
106 dev_err(dev->dev, "PUNIT SEM: %d\n", sem); 106 dev_err(dev->dev, "PUNIT SEM: %d\n", sem);