Skip to content

Commit fb24c13

Browse files
Wolfram Sangtomba
authored andcommitted
drm: tilcdc: don't use devm_pinctrl_get_select_default() in probe
Since commit ab78029 ("drivers/pinctrl: grab default handles from device core"), we can rely on device core for setting the default pins. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a210aaf commit fb24c13

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/gpu/drm/tilcdc/tilcdc_panel.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include <linux/backlight.h>
88
#include <linux/gpio/consumer.h>
9-
#include <linux/pinctrl/consumer.h>
109
#include <linux/platform_device.h>
1110

1211
#include <video/display_timing.h>
@@ -308,7 +307,6 @@ static int panel_probe(struct platform_device *pdev)
308307
struct backlight_device *backlight;
309308
struct panel_module *panel_mod;
310309
struct tilcdc_module *mod;
311-
struct pinctrl *pinctrl;
312310
int ret;
313311

314312
/* bail out early if no DT data: */
@@ -342,10 +340,6 @@ static int panel_probe(struct platform_device *pdev)
342340

343341
tilcdc_module_init(mod, "panel", &panel_module_ops);
344342

345-
pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
346-
if (IS_ERR(pinctrl))
347-
dev_warn(&pdev->dev, "pins are not configured\n");
348-
349343
panel_mod->timings = of_get_display_timings(node);
350344
if (!panel_mod->timings) {
351345
dev_err(&pdev->dev, "could not get panel timings\n");

0 commit comments

Comments
 (0)