net/appletalk: LTPC needs virt_to_bus
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Feb 2015 19:48:54 +0000 (20:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2015 21:28:46 +0000 (16:28 -0500)
commitbf60e50cb3ed50ae536f7655c8af1acda137ea5b
treeaeb1c23af821678ed0ec0abc0a9d2a742fe38725
parent15added6a5940454e225c09b78837514d35fcf70
net/appletalk: LTPC needs virt_to_bus

The ltpc 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/appletalk/ltpc.c: In function 'handlefc':
drivers/net/appletalk/ltpc.c:380:2: error: implicit declaration of function 'virt_to_bus' [-Werror=implicit-function-declaration]
  set_dma_addr(dma,virt_to_bus(ltdmacbuf));
  ^

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/appletalk/Kconfig