Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fbdev: mmp: fix value check in mmphw_probe()

in mmphw_probe(), check the return value of clk_prepare_enable()
and return the error code if clk_prepare_enable() returns an
unexpected value.

Fixes: d63028c38905 ("video: mmp display controller support")
Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Yuanjun Gong and committed by
Helge Deller
0872b2c0 43a1120c

+3 -1
+3 -1
drivers/video/fbdev/mmp/hw/mmp_ctrl.c
··· 519 519 "unable to get clk %s\n", mi->clk_name); 520 520 goto failed; 521 521 } 522 - clk_prepare_enable(ctrl->clk); 522 + ret = clk_prepare_enable(ctrl->clk); 523 + if (ret) 524 + goto failed; 523 525 524 526 /* init global regs */ 525 527 ctrl_set_default(ctrl);