Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: let KS8842 driver depend on HAS_IOMEM

Fixes this compile error on s390:

CC drivers/net/ks8842.o
drivers/net/ks8842.c: In function 'ks8842_select_bank':
drivers/net/ks8842.c:124: error: implicit declaration of function 'iowrite16'
drivers/net/ks8842.c: In function 'ks8842_write8':
drivers/net/ks8842.c:131: error: implicit declaration of function 'iowrite8'

Cc: Richard Rojfors <richard.rojfors.ext@mocean-labs.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Heiko Carstens and committed by
David S. Miller
0cf08dcb fec37ab5

+1
+1
drivers/net/Kconfig
··· 1725 1725 1726 1726 config KS8842 1727 1727 tristate "Micrel KSZ8842" 1728 + depends on HAS_IOMEM 1728 1729 help 1729 1730 This platform driver is for Micrel KSZ8842 chip. 1730 1731