]> git.baikalelectronics.ru Git - kernel.git/commit
net: mv643xx_eth: fix build failure
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 17 Dec 2016 00:45:05 +0000 (00:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Dec 2016 02:47:26 +0000 (21:47 -0500)
commit23c610968e915d826ef25a278cc097031ae00b4d
tree745aa6f2817a6fcee2f10ca0f0b0390439d1535b
parent4f24ae24937d4407c1612ba2375ef84a895ab478
net: mv643xx_eth: fix build failure

The build of sparc allmodconfig fails with the error:
"of_irq_to_resource" [drivers/net/ethernet/marvell/mv643xx_eth.ko]
undefined!

of_irq_to_resource() is defined when CONFIG_OF_IRQ is defined. And also
CONFIG_OF_IRQ can only be defined if CONFIG_IRQ is defined. So we can
safely use #if defined(CONFIG_OF_IRQ) in the code.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c