]> 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)
commitb72ef820b1ccdff8ac606b1fcef068f2f0f49965
tree8feb885942f9fc5e0dbd6931b68b8976f9a9462d
parentd9a5d5b070f14cf8b96de110f37cfabcfac52587
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