From: Wei Yongjun Date: Wed, 11 Sep 2013 11:20:37 +0000 (+0800) Subject: mfd: ucb1x00-core: Fix error return code in ucb1x00_probe() X-Git-Tag: v3.13-rc1~66^2~4^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18fefda9ee13e377cf6c5542818b7be066972843;p=profile%2Fivi%2Fkernel-x86-ivi.git mfd: ucb1x00-core: Fix error return code in ucb1x00_probe() Fix to return a negative error code in the irq alloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd/ucb1x00-core.c index d5966e6..0313f83 100644 --- a/drivers/mfd/ucb1x00-core.c +++ b/drivers/mfd/ucb1x00-core.c @@ -553,6 +553,7 @@ static int ucb1x00_probe(struct mcp *mcp) if (ucb->irq_base < 0) { dev_err(&ucb->dev, "unable to allocate 16 irqs: %d\n", ucb->irq_base); + ret = ucb->irq_base; goto err_irq_alloc; }