Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362993
b: refs/heads/master
c: 2afe822
h: refs/heads/master
i:
  362991: 66b334b
v: v3
  • Loading branch information
Haojian Zhuang authored and Linus Walleij committed Apr 3, 2013
1 parent 952af91 commit ac864a2
Show file tree
Hide file tree
Showing 2 changed files with 9 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: a36571b59e216e95860744c94e52ccbbe43401f0
refs/heads/master: 2afe8229687ec24cbc07e78449a588bb8b68f858
8 changes: 8 additions & 0 deletions trunk/drivers/pinctrl/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
#include <linux/pinctrl/consumer.h>
#include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/machine.h>

#ifdef CONFIG_GPIOLIB
#include <asm-generic/gpio.h>
#endif

#include "core.h"
#include "devicetree.h"
#include "pinmux.h"
Expand Down Expand Up @@ -290,6 +294,7 @@ pinctrl_match_gpio_range(struct pinctrl_dev *pctldev, unsigned gpio)
* certain GPIO pin doesn't have back-end pinctrl device. If the return value
* is false, it means that pinctrl device may not be ready.
*/
#ifdef CONFIG_GPIOLIB
static bool pinctrl_ready_for_gpio_range(unsigned gpio)
{
struct pinctrl_dev *pctldev;
Expand All @@ -309,6 +314,9 @@ static bool pinctrl_ready_for_gpio_range(unsigned gpio)
}
return false;
}
#else
static bool pinctrl_ready_for_gpio_range(unsigned gpio) { return true; }
#endif

/**
* pinctrl_get_device_gpio_range() - find device for GPIO range
Expand Down

0 comments on commit ac864a2

Please sign in to comment.