aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/mmp/hw/mmp_ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/mmp/hw/mmp_ctrl.c')
-rw-r--r--drivers/video/fbdev/mmp/hw/mmp_ctrl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c
index 17174cd7a5bb..b02b0bc10613 100644
--- a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c
+++ b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c
@@ -510,7 +510,9 @@ static int mmphw_probe(struct platform_device *pdev)
ret = -ENOENT;
goto failed;
}
- clk_prepare_enable(ctrl->clk);
+ ret = clk_prepare_enable(ctrl->clk);
+ if (ret)
+ goto failed;
/* init global regs */
ctrl_set_default(ctrl);