Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307664
b: refs/heads/master
c: 2c96922
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Grant Likely committed Apr 6, 2012
1 parent 91d5249 commit d71d7f9
Show file tree
Hide file tree
Showing 2 changed files with 15 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: f5f93117f4ac24b8493cda67e6a1443517d26845
refs/heads/master: 2c96922ae3f0bfb7324a7a433d96d319fe6de729
14 changes: 14 additions & 0 deletions trunk/include/linux/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ static inline int gpio_request(unsigned gpio, const char *label)
return -ENOSYS;
}

static inline int devm_gpio_request(struct device *dev, unsigned gpio,
const char *label)
{
return -ENOSYS;
}

static inline int gpio_request_one(unsigned gpio,
unsigned long flags, const char *label)
{
Expand All @@ -79,6 +85,14 @@ static inline void gpio_free(unsigned gpio)
WARN_ON(1);
}

static inline void devm_gpio_free(struct device *dev, unsigned gpio)
{
might_sleep();

/* GPIO can never have been requested */
WARN_ON(1);
}

static inline void gpio_free_array(const struct gpio *array, size_t num)
{
might_sleep();
Expand Down

0 comments on commit d71d7f9

Please sign in to comment.