lkml.org 
[lkml]   [2011]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] ARM: tegra: Fix <mach/gpio.h> to have necessary #includes
Date
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(-)

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
--
1.7.0.4


\
 
 \ /
  Last update: 2011-08-11 20:09    [W:0.103 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site