aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/renesas
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2013-06-06 05:44:27 -0400
committerDavid S. Miller <davem@davemloft.net>2013-06-06 19:04:03 -0400
commitddcd91c6b8ec60a6bd5d3691d2cfaf4447215da1 (patch)
treea84e4f11fcd0bd9e3e32959efddca8fdbdfa5505 /drivers/net/ethernet/renesas
parent41d5ffeb9d12f760722f00ba0756389d32435124 (diff)
sh_eth: use EDSR_ENALL to set EDSR
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>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r--drivers/net/ethernet/renesas/sh_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
index 399a7c968e0d..8b7ff6a03699 100644
--- a/drivers/net/ethernet/renesas/sh_eth.c
+++ b/drivers/net/ethernet/renesas/sh_eth.c
@@ -523,7 +523,7 @@ static int sh_eth_reset(struct net_device *ndev)
523 int ret = 0; 523 int ret = 0;
524 524
525 if (sh_eth_is_gether(mdp)) { 525 if (sh_eth_is_gether(mdp)) {
526 sh_eth_write(ndev, 0x03, EDSR); 526 sh_eth_write(ndev, EDSR_ENALL, EDSR);
527 sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_GETHER, 527 sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_GETHER,
528 EDMR); 528 EDMR);
529 529