From: Guenter Roeck Date: Tue, 2 Apr 2013 09:35:10 +0000 (+0000) Subject: net/freescale/fec: Simplify OF dependencies X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~240 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c5f7808efd7efc27be0f3c102f2a631ad6f038c;p=pandora-kernel.git net/freescale/fec: Simplify OF dependencies Since of_get_mac_address() is now defined even if CONFIG_OF_NET is not configured, the ifdef around the code calling it is no longer necessary and can be removed. Similar, since of_get_phy_mode() is now defined as dummy function if OF_NET is not configured, it is no longer necessary to provide an OF dependent function as front-end. Also, the function depends on OF_NET, not on OF, so the conditional code was not correct anyway. Drop the front-end function and call of_get_phy_mode() directly. Signed-off-by: Guenter Roeck Signed-off-by: David S. Miller --- Reading git-diff-tree failed