[PATCH] OMAP: Fixing build warning with omap3_defconfig

Anuj Aggarwal
2010-03-02T10:56:14Z

Fixes the below build warning when compiled with omap3_defconfig:

CC arch/arm/mach-omap2/board-am3517evm.o
In file included from arch/arm/mach-omap2/board-am3517evm.c:23:
include/linux/i2c/pca953x.h:14: warning: 'struct i2c_client' declared
inside parameter list
include/linux/i2c/pca953x.h:14: warning: its scope is only this definition
or declaration, which is probably not what you want
include/linux/i2c/pca953x.h:17: warning: 'struct i2c_client' declared inside
parameter list
CC arch/arm/mach-omap2/usb-musb.o

Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
---
include/linux/i2c/pca953x.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/i2c/pca953x.h b/include/linux/i2c/pca953x.h
index 81736d6..6c8f853 100644
--- a/include/linux/i2c/pca953x.h
+++ b/include/linux/i2c/pca953x.h
@@ -1,4 +1,5 @@
/* platform data for the PCA9539 16-bit I/O expander driver */
+#include <linux/i2c.h>

struct pca953x_platform_data {
/* number of the first GPIO */
--
1.6.2.4