Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337017
b: refs/heads/master
c: 277ed0d
h: refs/heads/master
i:
  337015: c54d624
v: v3
  • Loading branch information
Pantelis Antoniou authored and Greg Kroah-Hartman committed Nov 27, 2012
1 parent 611fb3e commit 26c62e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f7e22283cec597e532b75d5a455ce6ed75de362
refs/heads/master: 277ed0d542778182c863c30bdbd2441dee3f964c
7 changes: 7 additions & 0 deletions trunk/drivers/w1/masters/w1-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <linux/gpio.h>
#include <linux/of_platform.h>
#include <linux/of_gpio.h>
#include <linux/pinctrl/consumer.h>
#include <linux/err.h>

#include "../w1.h"
#include "../w1_int.h"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 26c62e3

Please sign in to comment.