Commit 7cf0fc23 authored by David Brownell's avatar David Brownell Committed by Kevin Hilman

dm355 has no davinci_emac

Don't register the EMAC device except on chips that have one.

Fix lots of goofy whitespace with the EMAC setup.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent fe06adac
......@@ -324,6 +324,9 @@ void davinci_init_emac(char *mac_addr)
{
DECLARE_MAC_BUF(buf);
if (!(cpu_is_davinci_dm644x() || cpu_is_davinci_dm646x()))
return;
/* if valid MAC exists, don't re-register */
if (is_valid_ether_addr(emac_pdata.mac_addr))
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment