]> git.baikalelectronics.ru Git - kernel.git/commit
net/cadence/macb: Simplify OF dependencies
authorGuenter Roeck <linux@roeck-us.net>
Tue, 2 Apr 2013 09:35:09 +0000 (09:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2013 20:43:10 +0000 (16:43 -0400)
commit7169bc074ee3e5092aff079d3e80b931d967e443
tree8feb885942f9fc5e0dbd6931b68b8976f9a9462d
parente260376478adda9aadf2c3d8ed920c8387e274da
net/cadence/macb: 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/macb.c