diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-06-05 15:54:11 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-06-13 17:49:23 +0300 |
commit | 7d0b80647f73a170dd20d18fbf01de0f770ed7c8 (patch) | |
tree | 562b12b89141fdc9f4af16bd0726cc058b228ecf /arch/m68k | |
parent | 57e30e00bd5baacdf99450d69981ec9192592e3c (diff) | |
download | linux-7d0b80647f73a170dd20d18fbf01de0f770ed7c8.tar.xz |
gpiolib: remove unused gpio_cansleep()
There is not a single user in the entire kernel of this deprecated API,
kill it for good.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Yanteng Si <siyanteng@loongson.cn>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/mcfgpio.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/m68k/include/asm/mcfgpio.h b/arch/m68k/include/asm/mcfgpio.h index 2cefe8445980..7abd322c019f 100644 --- a/arch/m68k/include/asm/mcfgpio.h +++ b/arch/m68k/include/asm/mcfgpio.h @@ -34,14 +34,6 @@ static inline void __gpio_set_value(unsigned gpio, int value) __mcfgpio_set_value(gpio, value); } -static inline int __gpio_cansleep(unsigned gpio) -{ - if (gpio < MCFGPIO_PIN_MAX) - return 0; - else - return -EINVAL; -} - static inline int __gpio_to_irq(unsigned gpio) { return -EINVAL; |