Commit 3dc0a00e authored by Fabio Estevam's avatar Fabio Estevam Committed by Greg Kroah-Hartman

imx-drm: parallel-display: Let device core handle pinctrl

Since commit ab78029e (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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 15f29f7f
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <drm/drm_fb_helper.h> #include <drm/drm_fb_helper.h>
#include <drm/drm_crtc_helper.h> #include <drm/drm_crtc_helper.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/pinctrl/consumer.h>
#include "imx-drm.h" #include "imx-drm.h"
...@@ -206,20 +205,11 @@ static int imx_pd_probe(struct platform_device *pdev) ...@@ -206,20 +205,11 @@ static int imx_pd_probe(struct platform_device *pdev)
struct imx_parallel_display *imxpd; struct imx_parallel_display *imxpd;
int ret; int ret;
const char *fmt; const char *fmt;
struct pinctrl *pinctrl;
imxpd = devm_kzalloc(&pdev->dev, sizeof(*imxpd), GFP_KERNEL); imxpd = devm_kzalloc(&pdev->dev, sizeof(*imxpd), GFP_KERNEL);
if (!imxpd) if (!imxpd)
return -ENOMEM; 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); edidp = of_get_property(np, "edid", &imxpd->edid_len);
if (edidp) if (edidp)
imxpd->edid = kmemdup(edidp, imxpd->edid_len, GFP_KERNEL); imxpd->edid = kmemdup(edidp, imxpd->edid_len, GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment