]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: I2C_ELEKTOR should depend on HAS_IOPORT
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 30 Oct 2011 12:47:24 +0000 (13:47 +0100)
committerJean Delvare <khali@endymion.delvare>
Sun, 30 Oct 2011 12:47:24 +0000 (13:47 +0100)
commit86d161f68abb62022857f2d5e4991f0b7cfad1e7
tree31e0e4975688fb3d790a8ed48477e2b0609eaefc
parent9b383a156fdea02b24c3fbac0733b99058208ff1
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 dd19069eee9deac63eaf992fbcf94b3c71dea807 ("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@linux-fr.org>
drivers/i2c/busses/Kconfig