summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-10-12 14:25:23 +0800
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-10-29 12:20:11 +0200
commite8ddb0cfa18dfa4d85d6c420c967850d430b07c6 (patch)
treeb05bd8435aba58619baa3611128410ab8e87099e /drivers/video
parent33826d01d0f7e46eccd670e1ecdae1dff1cebfd2 (diff)
downloadop-kernel-dev-e8ddb0cfa18dfa4d85d6c420c967850d430b07c6.zip
op-kernel-dev-e8ddb0cfa18dfa4d85d6c420c967850d430b07c6.tar.gz
fbdev: fix error return code in metronomefb_probe()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/metronomefb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/metronomefb.c b/drivers/video/metronomefb.c
index 2d7dd8e..195cc2d 100644
--- a/drivers/video/metronomefb.c
+++ b/drivers/video/metronomefb.c
@@ -690,7 +690,8 @@ static int metronomefb_probe(struct platform_device *dev)
goto err_csum_table;
}
- if (board->setup_irq(info))
+ retval = board->setup_irq(info);
+ if (retval)
goto err_csum_table;
retval = metronome_init_regs(par);
OpenPOWER on IntegriCloud