Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: leds-gpio: 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.

Reported-by: Stephen Warren <warren@wwwdotorg.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

authored by

Fabio Estevam and committed by
Bryan Wu
bfa855ba 28720cff

-6
-6
drivers/leds/leds-gpio.c
··· 20 20 #include <linux/slab.h> 21 21 #include <linux/workqueue.h> 22 22 #include <linux/module.h> 23 - #include <linux/pinctrl/consumer.h> 24 23 #include <linux/err.h> 25 24 26 25 struct gpio_led_data { ··· 235 236 { 236 237 struct gpio_led_platform_data *pdata = pdev->dev.platform_data; 237 238 struct gpio_leds_priv *priv; 238 - struct pinctrl *pinctrl; 239 239 int i, ret = 0; 240 240 241 - pinctrl = devm_pinctrl_get_select_default(&pdev->dev); 242 - if (IS_ERR(pinctrl)) 243 - dev_warn(&pdev->dev, 244 - "pins are not configured from the driver\n"); 245 241 246 242 if (pdata && pdata->num_leds) { 247 243 priv = devm_kzalloc(&pdev->dev,