aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/include/asm/gpio.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/sh/include/asm/gpio.h b/arch/sh/include/asm/gpio.h
index a6ec3e430380..02de5b609ba5 100644
--- a/arch/sh/include/asm/gpio.h
+++ b/arch/sh/include/asm/gpio.h
@@ -12,6 +12,8 @@
12#ifndef __ASM_SH_GPIO_H 12#ifndef __ASM_SH_GPIO_H
13#define __ASM_SH_GPIO_H 13#define __ASM_SH_GPIO_H
14 14
15#include <linux/errno.h>
16
15#if defined(CONFIG_CPU_SH3) 17#if defined(CONFIG_CPU_SH3)
16#include <cpu/gpio.h> 18#include <cpu/gpio.h>
17#endif 19#endif
@@ -100,6 +102,19 @@ int gpio_direction_output(unsigned gpio, int value);
100int gpio_get_value(unsigned gpio); 102int gpio_get_value(unsigned gpio);
101void gpio_set_value(unsigned gpio, int value); 103void gpio_set_value(unsigned gpio, int value);
102 104
105/* IRQ modes are unspported */
106static inline int gpio_to_irq(unsigned gpio)
107{
108 WARN_ON(1);
109 return -EINVAL;
110}
111
112static inline int irq_to_gpio(unsigned irq)
113{
114 WARN_ON(1);
115 return -EINVAL;
116}
117
103#include <asm-generic/gpio.h> 118#include <asm-generic/gpio.h>
104 119
105#endif /* __ASM_SH_GPIO_H */ 120#endif /* __ASM_SH_GPIO_H */