From 38421d5974ead37f0c002d15feb46b636eea5a5f Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Tue, 21 Oct 2008 17:48:40 +0900 Subject: [PATCH] --- yaml --- r: 117252 b: refs/heads/master c: 550109378450e7982101f299d41a80e8efc759ea h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/sh/include/asm/gpio.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 8eac6e88e0a8..4976e0b2628b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bbc97411d11b3a835c62904fddb5ce9ff457f5fa +refs/heads/master: 550109378450e7982101f299d41a80e8efc759ea diff --git a/trunk/arch/sh/include/asm/gpio.h b/trunk/arch/sh/include/asm/gpio.h index a6ec3e430380..02de5b609ba5 100644 --- a/trunk/arch/sh/include/asm/gpio.h +++ b/trunk/arch/sh/include/asm/gpio.h @@ -12,6 +12,8 @@ #ifndef __ASM_SH_GPIO_H #define __ASM_SH_GPIO_H +#include + #if defined(CONFIG_CPU_SH3) #include #endif @@ -100,6 +102,19 @@ int gpio_direction_output(unsigned gpio, int value); int gpio_get_value(unsigned gpio); void gpio_set_value(unsigned gpio, int value); +/* IRQ modes are unspported */ +static inline int gpio_to_irq(unsigned gpio) +{ + WARN_ON(1); + return -EINVAL; +} + +static inline int irq_to_gpio(unsigned irq) +{ + WARN_ON(1); + return -EINVAL; +} + #include #endif /* __ASM_SH_GPIO_H */