diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-08-18 03:11:28 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-20 17:10:41 -0700 |
commit | a3153d8c41132d6fda080a4b3e53b7ee25d3c125 (patch) | |
tree | b0ae37ec2fc93480fb0aad7e65d435a7e83fa5ab /drivers/net/ethernet/renesas/sh_eth.h | |
parent | bd61224b1cbec096694e89c4187119c8576fe186 (diff) | |
download | op-kernel-dev-a3153d8c41132d6fda080a4b3e53b7ee25d3c125.zip op-kernel-dev-a3153d8c41132d6fda080a4b3e53b7ee25d3c125.tar.gz |
sh_eth: get register layout from 'struct sh_eth_cpu_data'
The register layout is a SoC characteristic, so it's wrong that it's stored
in the otherwise board specific platform data. Add 'register_type' field to
'struct sh_eth_cpu_data', initialize it properly for each SoC, and read it
from this structure instead of the platfrom data from now on...
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/sh_eth.h')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.h b/drivers/net/ethernet/renesas/sh_eth.h index da93f5c..1e78528 100644 --- a/drivers/net/ethernet/renesas/sh_eth.h +++ b/drivers/net/ethernet/renesas/sh_eth.h @@ -454,6 +454,7 @@ struct sh_eth_cpu_data { void (*set_rate)(struct net_device *ndev); /* mandatory initialize value */ + int register_type; unsigned long eesipr_value; /* optional initialize value */ |