diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2012-03-29 15:32:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-01 23:22:11 -0400 |
commit | 10b9194f959608368ed89df1937f17cfe6bd6d84 (patch) | |
tree | 867eec7da75983ee378204b8bdbeefc26301c336 /drivers/net/ethernet/renesas/sh_eth.c | |
parent | 6bafd6436e99d08e8def37ae9f790e1aff871bae (diff) |
net: sh_eth: fix endian check for architecture independent
SuperH has the "CONFIG_CPU_LITTLE_ENDIAN" and the "__LITTLE_ENDIAN__".
But, other architecture doesn't have them. So, this patch fixes it.
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/sh_eth.c')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 2 |
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 8bdf070ace90..d63e09b29a96 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c | |||
@@ -804,7 +804,7 @@ static int sh_eth_dev_init(struct net_device *ndev) | |||
804 | /* all sh_eth int mask */ | 804 | /* all sh_eth int mask */ |
805 | sh_eth_write(ndev, 0, EESIPR); | 805 | sh_eth_write(ndev, 0, EESIPR); |
806 | 806 | ||
807 | #if defined(__LITTLE_ENDIAN__) | 807 | #if defined(__LITTLE_ENDIAN) |
808 | if (mdp->cd->hw_swap) | 808 | if (mdp->cd->hw_swap) |
809 | sh_eth_write(ndev, EDMR_EL, EDMR); | 809 | sh_eth_write(ndev, EDMR_EL, EDMR); |
810 | else | 810 | else |