From: Fabio Estevam Date: Tue, 21 May 2013 14:24:46 +0000 (-0300) Subject: imx-drm: parallel-display: Let device core handle pinctrl X-Git-Tag: MMI-PSA29.97-13-9~14152^2~545 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3dc0a00e51ca497541dc7511c7f6ce9262ac9fa0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git imx-drm: parallel-display: Let device core handle pinctrl Since commit ab78029 (drivers/pinctrl: grab default handles from device core) we can rely on device core for handling pinctrl, so remove devm_pinctrl_get_select_default() from the driver. Signed-off-by: Fabio Estevam Acked-by: Shawn Guo Acked-by: Sascha Hauer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c index e7fba62c10e9..f324ed388547 100644 --- a/drivers/staging/imx-drm/parallel-display.c +++ b/drivers/staging/imx-drm/parallel-display.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "imx-drm.h" @@ -206,20 +205,11 @@ static int imx_pd_probe(struct platform_device *pdev) struct imx_parallel_display *imxpd; int ret; const char *fmt; - struct pinctrl *pinctrl; imxpd = devm_kzalloc(&pdev->dev, sizeof(*imxpd), GFP_KERNEL); if (!imxpd) return -ENOMEM; - pinctrl = devm_pinctrl_get_select_default(&pdev->dev); - if (IS_ERR(pinctrl)) { - ret = PTR_ERR(pinctrl); - dev_warn(&pdev->dev, "pinctrl_get_select_default failed with %d", - ret); - return ret; - } - edidp = of_get_property(np, "edid", &imxpd->edid_len); if (edidp) imxpd->edid = kmemdup(edidp, imxpd->edid_len, GFP_KERNEL);