Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e54bdc18 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by Tony Lindgren
Browse files

ARM: OMAP1: fix compilation issue in board-sx1.c



SX1 board requirese i2c, so select it in Kconfig, otherwise I have the
following build error:

arch/arm/mach-omap1/board-sx1.c: In function 'sx1_i2c_write_byte':
arch/arm/mach-omap1/board-sx1.c:58:2: error: implicit declaration of function 'i2c_get_adapter' [-Werror=implicit-function-declaration]
arch/arm/mach-omap1/board-sx1.c:58:7: warning: assignment makes pointer from integer without a cast [enabled by default]
arch/arm/mach-omap1/board-sx1.c:67:2: error: implicit declaration of function 'i2c_transfer' [-Werror=implicit-function-declaration]
arch/arm/mach-omap1/board-sx1.c:68:2: error: implicit declaration of function 'i2c_put_adapter' [-Werror=implicit-function-declaration]
arch/arm/mach-omap1/board-sx1.c: In function 'sx1_i2c_read_byte':
arch/arm/mach-omap1/board-sx1.c:82:7: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-omap1/board-sx1.o] Error 1
make: *** [arch/arm/mach-omap1] Error 2
make: *** Waiting for unfinished jobs....

Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent d48b97b4
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -132,6 +132,7 @@ config MACH_OMAP_PALMTT


config MACH_SX1
config MACH_SX1
	bool "Siemens SX1"
	bool "Siemens SX1"
	select I2C
	depends on ARCH_OMAP1 && ARCH_OMAP15XX
	depends on ARCH_OMAP1 && ARCH_OMAP15XX
	help
	help
	  Support for the Siemens SX1 phone. To boot the kernel,
	  Support for the Siemens SX1 phone. To boot the kernel,