mfd: Fix compilation error in tps65910.h
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Fri, 16 Mar 2012 07:28:37 +0000 (12:58 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 16 Mar 2012 20:02:09 +0000 (21:02 +0100)
'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>
include/linux/mfd/tps65910.h

index b9aceb5..0148c80 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef __LINUX_MFD_TPS65910_H
 #define __LINUX_MFD_TPS65910_H
 
+#include <linux/gpio.h>
+
 /* TPS chip id list */
 #define TPS65910                       0
 #define TPS65911                       1