From: Pantelis Antoniou Date: Wed, 21 Nov 2012 21:13:29 +0000 (+0400) Subject: w1-gpio: Pinctrl-fy X-Git-Tag: firefly_0821_release~3680^2~1436^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=277ed0d542778182c863c30bdbd2441dee3f964c;p=firefly-linux-kernel-4.4.55.git w1-gpio: Pinctrl-fy Enable pinctrl for w1-gpio. Acked-by: Tony Lindgren Signed-off-by: Pantelis Antoniou Signed-off-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c index 6012c4ea3206..aec35bd46506 100644 --- a/drivers/w1/masters/w1-gpio.c +++ b/drivers/w1/masters/w1-gpio.c @@ -16,6 +16,8 @@ #include #include #include +#include +#include #include "../w1.h" #include "../w1_int.h" @@ -85,8 +87,13 @@ static int __init w1_gpio_probe(struct platform_device *pdev) { struct w1_bus_master *master; struct w1_gpio_platform_data *pdata; + struct pinctrl *pinctrl; int err; + pinctrl = devm_pinctrl_get_select_default(&pdev->dev); + if (IS_ERR(pinctrl)) + dev_warn(&pdev->dev, "unable to select pin group\n"); + err = w1_gpio_probe_dt(pdev); if (err < 0) return err;