Commit 3e3397e7 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by David S. Miller

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: default avatarSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a6b3c483
...@@ -2713,7 +2713,7 @@ static const struct of_device_id mv643xx_eth_shared_ids[] = { ...@@ -2713,7 +2713,7 @@ static const struct of_device_id mv643xx_eth_shared_ids[] = {
MODULE_DEVICE_TABLE(of, mv643xx_eth_shared_ids); MODULE_DEVICE_TABLE(of, mv643xx_eth_shared_ids);
#endif #endif
#if defined(CONFIG_OF) && !defined(CONFIG_MV64X60) #if defined(CONFIG_OF_IRQ) && !defined(CONFIG_MV64X60)
#define mv643xx_eth_property(_np, _name, _v) \ #define mv643xx_eth_property(_np, _name, _v) \
do { \ do { \
u32 tmp; \ u32 tmp; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment