diff mbox

ARM: tegra: Fix <mach/gpio.h> to have necessary #includes

Message ID 1313085952-26365-1-git-send-email-swarren@nvidia.com (mailing list archive)
State New, archived
Headers show

Commit Message

Stephen Warren Aug. 11, 2011, 6:05 p.m. UTC
Without this, EINVAL isn't defined, and type bool isn't declared.
This leads to compilation failures.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 arch/arm/mach-tegra/include/mach/gpio.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Russell King - ARM Linux Aug. 11, 2011, 7:36 p.m. UTC | #1
On Thu, Aug 11, 2011 at 12:05:52PM -0600, Stephen Warren wrote:
> Without this, EINVAL isn't defined, and type bool isn't declared.
> This leads to compilation failures.

An alternative approach would be to convert tegra to be able to use
the gpiolib __gpio_to_irq() for the on-SoC stuff, and eliminate
irq_to_gpio().

Would it be possible to do that instead?
diff mbox

Patch

diff --git a/arch/arm/mach-tegra/include/mach/gpio.h b/arch/arm/mach-tegra/include/mach/gpio.h
index e353805..96af4ff 100644
--- a/arch/arm/mach-tegra/include/mach/gpio.h
+++ b/arch/arm/mach-tegra/include/mach/gpio.h
@@ -20,7 +20,8 @@ 
 #ifndef __MACH_TEGRA_GPIO_H
 #define __MACH_TEGRA_GPIO_H
 
-#include <linux/init.h>
+#include <linux/errno.h>
+#include <linux/types.h>
 #include <mach/irqs.h>
 
 #define TEGRA_NR_GPIOS		INT_GPIO_NR