Commit 6ea0205b authored by David Brownell's avatar David Brownell Committed by Linus Torvalds

gpio: build fixes

This fixes various gpio-related build errors (mostly potential)
reported in part by Russell King and Uwe Kleine-König.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Cc: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ee29420a
#ifndef _ASM_GENERIC_GPIO_H #ifndef _ASM_GENERIC_GPIO_H
#define _ASM_GENERIC_GPIO_H #define _ASM_GENERIC_GPIO_H
#include <linux/types.h>
#ifdef CONFIG_HAVE_GPIO_LIB #ifdef CONFIG_HAVE_GPIO_LIB
#include <linux/compiler.h>
/* Platforms may implement their GPIO interface with library code, /* Platforms may implement their GPIO interface with library code,
* at a small performance cost for non-inlined operations and some * at a small performance cost for non-inlined operations and some
* extra memory (for code and for per-GPIO table entries). * extra memory (for code and for per-GPIO table entries).
...@@ -74,7 +78,7 @@ struct gpio_chip { ...@@ -74,7 +78,7 @@ struct gpio_chip {
extern const char *gpiochip_is_requested(struct gpio_chip *chip, extern const char *gpiochip_is_requested(struct gpio_chip *chip,
unsigned offset); unsigned offset);
extern int __init __must_check gpiochip_reserve(int start, int ngpio); extern int __must_check gpiochip_reserve(int start, int ngpio);
/* add/remove chips */ /* add/remove chips */
extern int gpiochip_add(struct gpio_chip *chip); extern int gpiochip_add(struct gpio_chip *chip);
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
#else #else
#include <linux/types.h>
#include <linux/errno.h>
/* /*
* Some platforms don't support the GPIO programming interface. * Some platforms don't support the GPIO programming interface.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment