diff options
| -rw-r--r-- | drivers/pinctrl/nomadik/pinctrl-abx500.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pinctrl/nomadik/pinctrl-abx500.c b/drivers/pinctrl/nomadik/pinctrl-abx500.c index 085e60106ec2..1f7469c9857d 100644 --- a/drivers/pinctrl/nomadik/pinctrl-abx500.c +++ b/drivers/pinctrl/nomadik/pinctrl-abx500.c | |||
| @@ -191,6 +191,7 @@ static void abx500_gpio_set(struct gpio_chip *chip, unsigned offset, int val) | |||
| 191 | dev_err(pct->dev, "%s write failed (%d)\n", __func__, ret); | 191 | dev_err(pct->dev, "%s write failed (%d)\n", __func__, ret); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | #ifdef CONFIG_DEBUG_FS | ||
| 194 | static int abx500_get_pull_updown(struct abx500_pinctrl *pct, int offset, | 195 | static int abx500_get_pull_updown(struct abx500_pinctrl *pct, int offset, |
| 195 | enum abx500_gpio_pull_updown *pull_updown) | 196 | enum abx500_gpio_pull_updown *pull_updown) |
| 196 | { | 197 | { |
| @@ -226,6 +227,7 @@ out: | |||
| 226 | 227 | ||
| 227 | return ret; | 228 | return ret; |
| 228 | } | 229 | } |
| 230 | #endif | ||
| 229 | 231 | ||
| 230 | static int abx500_set_pull_updown(struct abx500_pinctrl *pct, | 232 | static int abx500_set_pull_updown(struct abx500_pinctrl *pct, |
| 231 | int offset, enum abx500_gpio_pull_updown val) | 233 | int offset, enum abx500_gpio_pull_updown val) |
| @@ -468,6 +470,7 @@ out: | |||
| 468 | return ret; | 470 | return ret; |
| 469 | } | 471 | } |
| 470 | 472 | ||
| 473 | #ifdef CONFIG_DEBUG_FS | ||
| 471 | static int abx500_get_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, | 474 | static int abx500_get_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, |
| 472 | unsigned gpio) | 475 | unsigned gpio) |
| 473 | { | 476 | { |
| @@ -553,8 +556,6 @@ out: | |||
| 553 | return ret; | 556 | return ret; |
| 554 | } | 557 | } |
| 555 | 558 | ||
| 556 | #ifdef CONFIG_DEBUG_FS | ||
| 557 | |||
| 558 | #include <linux/seq_file.h> | 559 | #include <linux/seq_file.h> |
| 559 | 560 | ||
| 560 | static void abx500_gpio_dbg_show_one(struct seq_file *s, | 561 | static void abx500_gpio_dbg_show_one(struct seq_file *s, |
