diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2012-02-15 12:54:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-16 17:08:09 -0500 |
commit | 150647fb2c313d7c5184fca3fa0829a4a7d6f7bc (patch) | |
tree | 6bd3edfbc652b6e5321b33d333b67769e3534f18 /drivers/net/ethernet/renesas | |
parent | 3acbc9715a5ac8a2534a69eb3488b63b7c9fb1e2 (diff) |
net: sh_eth: change the condition of initialization
The SH7757 has 2 Fast Ethernet and 2 Gigabit Ethernet, and the first
Gigabit channel needs the initialization. So, this patch adds the
parameter of "needs_init", and if the sh_eth_plat_data is set it
to 1, the driver will initialize the channel.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 8f53b5ac7f05..5a5afbc7273b 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c | |||
@@ -1859,8 +1859,8 @@ static int sh_eth_drv_probe(struct platform_device *pdev) | |||
1859 | /* read and set MAC address */ | 1859 | /* read and set MAC address */ |
1860 | read_mac_address(ndev, pd->mac_addr); | 1860 | read_mac_address(ndev, pd->mac_addr); |
1861 | 1861 | ||
1862 | /* First device only init */ | 1862 | /* initialize first or needed device */ |
1863 | if (!devno) { | 1863 | if (!devno || pd->needs_init) { |
1864 | if (mdp->cd->tsu) { | 1864 | if (mdp->cd->tsu) { |
1865 | struct resource *rtsu; | 1865 | struct resource *rtsu; |
1866 | rtsu = platform_get_resource(pdev, IORESOURCE_MEM, 1); | 1866 | rtsu = platform_get_resource(pdev, IORESOURCE_MEM, 1); |