Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8ddb0cf authored by Wei Yongjun's avatar Wei Yongjun Committed by Tomi Valkeinen
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 33826d01
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);