diff options
author | Venu Byravarasu <vbyravarasu@nvidia.com> | 2012-03-16 03:28:37 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-16 16:02:09 -0400 |
commit | 095e7f780be59f3adb4d39ac3cb8d3665b3f2347 (patch) | |
tree | e73219ebe3268e34a0db9dedf87304e9f2fe4f6c /include/linux | |
parent | 1927ddf66805fca2af010c3e9d0b29216aed0fae (diff) |
mfd: Fix compilation error in tps65910.h
'struct gpio_chip' is declared in include/asm-generic/gpio.h
which is included by include/linux/gpio.h.
However without including gpio.h, TPS65910.h declares
a member of this type as part of 'struct tps65910' declaration.
This causes compilation error, if gpio.h is not included
before including tps65910.h, in source files.
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/tps65910.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h index b9aceb5c1221..0148c8049ca4 100644 --- a/include/linux/mfd/tps65910.h +++ b/include/linux/mfd/tps65910.h | |||
@@ -17,6 +17,8 @@ | |||
17 | #ifndef __LINUX_MFD_TPS65910_H | 17 | #ifndef __LINUX_MFD_TPS65910_H |
18 | #define __LINUX_MFD_TPS65910_H | 18 | #define __LINUX_MFD_TPS65910_H |
19 | 19 | ||
20 | #include <linux/gpio.h> | ||
21 | |||
20 | /* TPS chip id list */ | 22 | /* TPS chip id list */ |
21 | #define TPS65910 0 | 23 | #define TPS65910 0 |
22 | #define TPS65911 1 | 24 | #define TPS65911 1 |