]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: wan: add missing virt_to_bus dependencies
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Jan 2015 14:15:02 +0000 (15:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jan 2015 23:08:21 +0000 (15:08 -0800)
commit303c28d859cc7ab0f1f37acdd4aadf87c6e86743
tree4a47b26252edfce9a11f52e5683d68f4e374f4a7
parentfc9a5707832e57f2317c89101fbe9d4ccbd62fa6
net: wan: add missing virt_to_bus dependencies

The cosa driver is rather outdated and does not get built on most
platforms because it requires the ISA_DMA_API symbol. However
there are some ARM platforms that have ISA_DMA_API but no virt_to_bus,
and they get this build error when enabling the ltpc driver.

drivers/net/wan/cosa.c: In function 'tx_interrupt':
drivers/net/wan/cosa.c:1768:3: error: implicit declaration of function 'virt_to_bus'
   unsigned long addr = virt_to_bus(cosa->txbuf);
   ^

The same problem exists for the Hostess SV-11 and Sealevel Systems 4021
drivers.

This adds another dependency in Kconfig to avoid that configuration.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/Kconfig