net/cadence/at91_ether: Simplify OF dependencies
authorGuenter Roeck <linux@roeck-us.net>
Tue, 2 Apr 2013 09:35:08 +0000 (09:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2013 20:43:09 +0000 (16:43 -0400)
commitf9b124901cd7cf43f272b86008d813ec89d9508b
treefcc7190a0a30b3331f5b62609026ae7b35013559
parent65b3841b9cb5fe1b239f12dbf033f9827d73d032
net/cadence/at91_ether: Simplify OF dependencies

With of_get_mac_address() and of_get_phy_mode() now defined as dummy
functions if OF_NET is not configured, it is no longer necessary to
provide OF dependent functions as front-end. Also, the two functions
depend on OF_NET, not on OF, so the conditional code was not correct
anyway.

Drop the front-end functions and call of_get_mac_address() and
of_get_phy_mode() directly instead.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/at91_ether.c