sh_eth: get register layout from 'struct sh_eth_cpu_data'
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 17 Aug 2013 23:11:28 +0000 (03:11 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2013 00:10:41 +0000 (17:10 -0700)
commita3153d8c41132d6fda080a4b3e53b7ee25d3c125
treeb0ae37ec2fc93480fb0aad7e65d435a7e83fa5ab
parentbd61224b1cbec096694e89c4187119c8576fe186
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>
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/renesas/sh_eth.h