aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2014-12-16 07:31:26 -0500
committerWolfram Sang <wsa@the-dreams.de>2014-12-20 03:28:09 -0500
commitfe07adec730d271c91f4160f96a0f24fe7553c63 (patch)
treebdf1a6886e8038337e6e73ed4d81afe5e9455c16
parentb074cf80a7d40fefe1f4063c9841232171e8daea (diff)
i2c: sh_mobile: fix uninitialized var when debug is enabled
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--drivers/i2c/busses/i2c-sh_mobile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c
index a12297e7680a..440d5dbc8b5f 100644
--- a/drivers/i2c/busses/i2c-sh_mobile.c
+++ b/drivers/i2c/busses/i2c-sh_mobile.c
@@ -550,6 +550,7 @@ static struct dma_chan *sh_mobile_i2c_request_dma_chan(struct device *dev,
550 550
551 chan = dma_request_slave_channel_reason(dev, chan_name); 551 chan = dma_request_slave_channel_reason(dev, chan_name);
552 if (IS_ERR(chan)) { 552 if (IS_ERR(chan)) {
553 ret = PTR_ERR(chan);
553 dev_dbg(dev, "request_channel failed for %s (%d)\n", chan_name, ret); 554 dev_dbg(dev, "request_channel failed for %s (%d)\n", chan_name, ret);
554 return chan; 555 return chan;
555 } 556 }