sh_eth: use EDSR_ENALL to set EDSR
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Thu, 6 Jun 2013 09:44:27 +0000 (09:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2013 23:04:03 +0000 (16:04 -0700)
Use now always available EDSR_ENALL instead of the bare number to set EDSR.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
[Sergei: added the changelog, reworded the subject, changing the prefix.]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c

index 399a7c968e0d4d9e2ab48052c8f25819aac23db8..8b7ff6a0369973fd439b5ed345247976eac2e873 100644 (file)
@@ -523,7 +523,7 @@ static int sh_eth_reset(struct net_device *ndev)
        int ret = 0;
 
        if (sh_eth_is_gether(mdp)) {
-               sh_eth_write(ndev, 0x03, EDSR);
+               sh_eth_write(ndev, EDSR_ENALL, EDSR);
                sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_GETHER,
                                EDMR);