diff options
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/gpio.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sh/include/asm/gpio.h b/arch/sh/include/asm/gpio.h index f8d9a731e903..04f53d31489f 100644 --- a/arch/sh/include/asm/gpio.h +++ b/arch/sh/include/asm/gpio.h | |||
@@ -41,14 +41,12 @@ static inline int gpio_cansleep(unsigned gpio) | |||
41 | 41 | ||
42 | static inline int gpio_to_irq(unsigned gpio) | 42 | static inline int gpio_to_irq(unsigned gpio) |
43 | { | 43 | { |
44 | WARN_ON(1); | 44 | return __gpio_to_irq(gpio); |
45 | return -ENOSYS; | ||
46 | } | 45 | } |
47 | 46 | ||
48 | static inline int irq_to_gpio(unsigned int irq) | 47 | static inline int irq_to_gpio(unsigned int irq) |
49 | { | 48 | { |
50 | WARN_ON(1); | 49 | return -ENOSYS; |
51 | return -EINVAL; | ||
52 | } | 50 | } |
53 | 51 | ||
54 | #endif /* CONFIG_GPIOLIB */ | 52 | #endif /* CONFIG_GPIOLIB */ |