summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2014-06-12 06:52:17 (GMT)
committerWolfram Sang <wsa@the-dreams.de>2014-06-12 20:22:25 (GMT)
commitc155ba884f68b5447529bc75bcb54e68130fd774 (patch)
treedfdb4183d6a9dbbf1f56f4aace939d60142da388 /drivers/i2c
parent3e833490fae55633f6adc03a5e6172d47c01f3e4 (diff)
downloadlinux-c155ba884f68b5447529bc75bcb54e68130fd774.tar.xz
i2c: sun6i-p2wi: use proper return value in probe
Fixes: >> drivers/i2c/busses/i2c-sun6i-p2wi.c:243:10: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-sun6i-p2wi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-sun6i-p2wi.c b/drivers/i2c/busses/i2c-sun6i-p2wi.c
index f1d3e6f..5d2d678 100644
--- a/drivers/i2c/busses/i2c-sun6i-p2wi.c
+++ b/drivers/i2c/busses/i2c-sun6i-p2wi.c
@@ -240,7 +240,7 @@ static int p2wi_probe(struct platform_device *pdev)
snprintf(p2wi->adapter.name, sizeof(p2wi->adapter.name), pdev->name);
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
- dev_err(dev, "failed to retrieve irq: %d\n", ret);
+ dev_err(dev, "failed to retrieve irq: %d\n", irq);
return irq;
}