From: Krzysztof Kozlowski Date: Mon, 13 Mar 2023 14:49:08 +0000 (+0100) Subject: media: samsung: exynos4-is: do not require pinctrl X-Git-Tag: v6.6.17~5047^2~374 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af0a0a4d626f86c9e18c8e09b135a3b289294f4a;p=platform%2Fkernel%2Flinux-rpi.git media: samsung: exynos4-is: do not require pinctrl Driver does not handle pin configuration switching and several DTS provide empty pinctrl property, just to satisfy the driver's requirement for it. Drop requirement for pinctrl property as it is really optional. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/samsung/exynos4-is/media-dev.c b/drivers/media/platform/samsung/exynos4-is/media-dev.c index 98a60f0..22baa42 100644 --- a/drivers/media/platform/samsung/exynos4-is/media-dev.c +++ b/drivers/media/platform/samsung/exynos4-is/media-dev.c @@ -1470,10 +1470,8 @@ static int fimc_md_probe(struct platform_device *pdev) goto err_v4l2dev; pinctrl = devm_pinctrl_get(dev); - if (IS_ERR(pinctrl)) { - ret = dev_err_probe(dev, PTR_ERR(pinctrl), "Failed to get pinctrl\n"); - goto err_clk; - } + if (IS_ERR(pinctrl)) + dev_dbg(dev, "Failed to get pinctrl: %pe\n", pinctrl); platform_set_drvdata(pdev, fmd);