davinci: Move emac platform_data to SoC-specific files
Since most of the emac platform_data is really SoC specific and not board specific, move it to the SoC-specific files. Put a pointer to the platform_data in the soc_info structure so the board-specific code can set some of the platform_data if it needs to. Signed-off-by: Mark A. Greer <mgreer@mvista.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
This commit is contained in:

committed by
Kevin Hilman

parent
65e866a974
commit
972412b648
@@ -260,11 +260,6 @@ void davinci_init_emac(struct emac_platform_data *pdata)
|
||||
{
|
||||
DECLARE_MAC_BUF(buf);
|
||||
|
||||
if (cpu_is_davinci_dm644x())
|
||||
dm644x_init_emac(pdata);
|
||||
else if (cpu_is_davinci_dm646x())
|
||||
dm646x_init_emac(pdata);
|
||||
|
||||
/* if valid MAC exists, don't re-register */
|
||||
if (is_valid_ether_addr(pdata->mac_addr))
|
||||
return;
|
||||
|
Reference in New Issue
Block a user