diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-06-12 10:52:17 +0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-06-13 00:22:25 +0400 |
commit | c155ba884f68b5447529bc75bcb54e68130fd774 (patch) | |
tree | dfdb4183d6a9dbbf1f56f4aace939d60142da388 /drivers/i2c/busses/i2c-sun6i-p2wi.c | |
parent | 3e833490fae55633f6adc03a5e6172d47c01f3e4 (diff) | |
download | linux-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/busses/i2c-sun6i-p2wi.c')
-rw-r--r-- | drivers/i2c/busses/i2c-sun6i-p2wi.c | 2 |
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; } |