diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-03-21 14:37:54 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-22 01:20:54 +0400 |
commit | dfed5e7fb4ec946694cad7400d75c44f3bb7f645 (patch) | |
tree | 0b8b42c20830e9fa1fc69c4d1ff7ebbfcba7329f /drivers | |
parent | 98e821a2a927b6dc0f7adc4b64ad29bec1b6ff89 (diff) | |
download | linux-dfed5e7fb4ec946694cad7400d75c44f3bb7f645.tar.xz |
sh_eth: use PIR_* bits
sh_mdio_init() uses the bare numbers instead of the PHY interface bits, despite
these are declared in sh_eth.h as 'enum PIR_BIT'...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index f632085e69b4..a7b6c706236d 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -2254,10 +2254,10 @@ static int sh_mdio_init(struct net_device *ndev, int id, /* bitbang init */ bitbang->addr = mdp->addr + mdp->reg_offset[PIR]; bitbang->set_gate = pd->set_mdio_gate; - bitbang->mdi_msk = 0x08; - bitbang->mdo_msk = 0x04; - bitbang->mmd_msk = 0x02;/* MMD */ - bitbang->mdc_msk = 0x01; + bitbang->mdi_msk = PIR_MDI; + bitbang->mdo_msk = PIR_MDO; + bitbang->mmd_msk = PIR_MMD; + bitbang->mdc_msk = PIR_MDC; bitbang->ctrl.ops = &bb_ops; /* MII controller setting */ |