]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite260376478adda9aadf2c3d8ed920c8387e274da
treefcc7190a0a30b3331f5b62609026ae7b35013559
parent8390c66e89a4ca3a5ad5510ed4796cbc86e09d5f
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