]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c: I2C_ELEKTOR should depend on HAS_IOPORT
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 30 Aug 2011 01:16:51 +0000 (11:16 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 30 Aug 2011 01:16:51 +0000 (11:16 +1000)
commita3c55c2af24d09c6e4743b61d816f8b0525da863
treecbee1448420f739ea6351085f9e24edb0bf6207d
parentc6a389f123b9f68d605bb7e0f9b32ec1e3e14132
i2c: I2C_ELEKTOR should depend on HAS_IOPORT

On m68k, I get:

drivers/i2c/busses/i2c-elektor.c: In function ‘pcf_isa_init’:
drivers/i2c/busses/i2c-elektor.c:153: error: implicit declaration of function ‘ioport_map’
drivers/i2c/busses/i2c-elektor.c:153: warning: assignment makes pointer from integer without a cast
drivers/i2c/busses/i2c-elektor.c: In function ‘elektor_probe’:
drivers/i2c/busses/i2c-elektor.c:287: error: implicit declaration of function ‘ioport_unmap’

Since commit 82ed223c264def2b15ee4bec2e8c3048092ceb5f ("iomap: make IOPORT/PCI
mapping functions conditional"), ioport_map() is only available on platforms
that set HAS_IOPORT.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jean Delvare <khali@linuxfr.org>
drivers/i2c/busses/Kconfig