mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
[media] media: video: mx2_camera.c: Provide error message if clk_get fails
Provide error message if clk_get fails. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
560fab62fa
commit
d867be1cc4
@ -1424,6 +1424,7 @@ static int __devinit mx2_camera_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
pcdev->clk_csi = clk_get(&pdev->dev, NULL);
|
pcdev->clk_csi = clk_get(&pdev->dev, NULL);
|
||||||
if (IS_ERR(pcdev->clk_csi)) {
|
if (IS_ERR(pcdev->clk_csi)) {
|
||||||
|
dev_err(&pdev->dev, "Could not get csi clock\n");
|
||||||
err = PTR_ERR(pcdev->clk_csi);
|
err = PTR_ERR(pcdev->clk_csi);
|
||||||
goto exit_kfree;
|
goto exit_kfree;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user