summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-sun6i-p2wi.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2014-06-12 08:52:17 +0200
committerWolfram Sang <wsa@the-dreams.de>2014-06-12 22:22:25 +0200
commitc155ba884f68b5447529bc75bcb54e68130fd774 (patch)
treedfdb4183d6a9dbbf1f56f4aace939d60142da388 /drivers/i2c/busses/i2c-sun6i-p2wi.c
parenti2c: sunxi: add P2WI (Push/Pull 2 Wire Interface) controller support (diff)
downloadlinux-c155ba884f68b5447529bc75bcb54e68130fd774.tar.xz
linux-c155ba884f68b5447529bc75bcb54e68130fd774.zip
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/busses/i2c-sun6i-p2wi.c')
-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 f1d3e6f1a409..5d2d67820c98 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;
}