From: Timur Tabi Date: Fri, 16 Feb 2007 18:01:29 +0000 (-0600) Subject: [POWERPC] add of_get_mac_address and update fsl_soc.c to use it X-Git-Tag: v2.6.21-rc1~77^2^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29cfe6f4fb7d187f65564764a0ecf2caf9d8ed58;p=pandora-kernel.git [POWERPC] add of_get_mac_address and update fsl_soc.c to use it Add function of_get_mac_address(), which obtains the best MAC address to use from the device tree by checking various properties in order. The order is: 'mac-address', then 'local-mac-address', then 'address'. It skips properties that contain invalid MAC addresses, which were probably not initialized by U-Boot. Update gfar_of_init() and fs_enet_of_init() in fsl_soc.c to call of_get_mac_address(). Signed-off-by: Timur Tabi Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed