diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2013-06-17 22:20:59 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:15:12 -0700 |
commit | 0ade93c62c66f3d24dc40cced6c88bf711346927 (patch) | |
tree | 2a37c1189a8631b7629d2dda342a87be6ef52b73 /drivers/gpio | |
parent | 5799239a59d863cd6331cc92d89d0a3ab21ec038 (diff) |
HACK: gpio: tegra: Don't require pinctrl
We're not using pinctrl yet, so don't make gpio-tegra require it.
Without this change, gpio_request will always return -EPROBE_DEFER.
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 628bd2280b9f..4deac30dfd73 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -156,12 +156,18 @@ void tegra_gpio_init_configure(unsigned gpio, bool is_input, int value) static int tegra_gpio_request(struct gpio_chip *chip, unsigned offset) { +#if 0 return pinctrl_request_gpio(offset); +#else + return 0; +#endif } static void tegra_gpio_free(struct gpio_chip *chip, unsigned offset) { +#if 0 pinctrl_free_gpio(offset); +#endif tegra_gpio_disable(offset); } |