提交 e8ddb0cf 编写于 作者: W Wei Yongjun 提交者: Tomi Valkeinen

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: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 33826d01
...@@ -690,7 +690,8 @@ static int metronomefb_probe(struct platform_device *dev) ...@@ -690,7 +690,8 @@ static int metronomefb_probe(struct platform_device *dev)
goto err_csum_table; goto err_csum_table;
} }
if (board->setup_irq(info)) retval = board->setup_irq(info);
if (retval)
goto err_csum_table; goto err_csum_table;
retval = metronome_init_regs(par); retval = metronome_init_regs(par);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册