aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/w1/masters/w1-gpio.c7
1 files changed, 7 insertions, 0 deletions
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 @@
16#include <linux/gpio.h> 16#include <linux/gpio.h>
17#include <linux/of_platform.h> 17#include <linux/of_platform.h>
18#include <linux/of_gpio.h> 18#include <linux/of_gpio.h>
19#include <linux/pinctrl/consumer.h>
20#include <linux/err.h>
19 21
20#include "../w1.h" 22#include "../w1.h"
21#include "../w1_int.h" 23#include "../w1_int.h"
@@ -85,8 +87,13 @@ static int __init w1_gpio_probe(struct platform_device *pdev)
85{ 87{
86 struct w1_bus_master *master; 88 struct w1_bus_master *master;
87 struct w1_gpio_platform_data *pdata; 89 struct w1_gpio_platform_data *pdata;
90 struct pinctrl *pinctrl;
88 int err; 91 int err;
89 92
93 pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
94 if (IS_ERR(pinctrl))
95 dev_warn(&pdev->dev, "unable to select pin group\n");
96
90 err = w1_gpio_probe_dt(pdev); 97 err = w1_gpio_probe_dt(pdev);
91 if (err < 0) 98 if (err < 0)
92 return err; 99 return err;