浏览代码

sh: gpio: Include asm-generic/gpio.h for non-gpiolib stubs.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 16 年之前
父节点
当前提交
10bfc6e190
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      arch/sh/include/asm/gpio.h

+ 2 - 4
arch/sh/include/asm/gpio.h

@@ -99,9 +99,7 @@ int gpio_direction_input(unsigned gpio);
 int gpio_direction_output(unsigned gpio, int value);
 int gpio_direction_output(unsigned gpio, int value);
 int gpio_get_value(unsigned gpio);
 int gpio_get_value(unsigned gpio);
 void gpio_set_value(unsigned gpio, int value);
 void gpio_set_value(unsigned gpio, int value);
-static inline int gpio_export(unsigned gpio, bool direction_may_change)
-{
-	return 0;
-}
+
+#include <asm-generic/gpio.h>
 
 
 #endif /* __ASM_SH_GPIO_H */
 #endif /* __ASM_SH_GPIO_H */