Commit c18a79ab authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by David S. Miller

sh_eth: get SH7619 support out of #ifdef

Get  the SH7619 data in the driver out of #ifdef by adding "sh7619-ether" to the
platform driver's ID table. Change the Ether platform device's name  in  the SH
platform code accordingly.
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7bbe150d
...@@ -124,8 +124,8 @@ static struct resource eth_resources[] = { ...@@ -124,8 +124,8 @@ static struct resource eth_resources[] = {
}; };
static struct platform_device eth_device = { static struct platform_device eth_device = {
.name = "sh-eth", .name = "sh7619-ether",
.id = -1, .id = -1,
.dev = { .dev = {
.platform_data = (void *)1, .platform_data = (void *)1,
}, },
......
...@@ -680,9 +680,9 @@ static struct sh_eth_cpu_data sh_eth_my_cpu_data = { ...@@ -680,9 +680,9 @@ static struct sh_eth_cpu_data sh_eth_my_cpu_data = {
.tsu = 1, .tsu = 1,
.select_mii = 1, .select_mii = 1,
}; };
#endif
#elif defined(CONFIG_CPU_SUBTYPE_SH7619) static struct sh_eth_cpu_data sh7619_data = {
static struct sh_eth_cpu_data sh_eth_my_cpu_data = {
.eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff, .eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff,
.apr = 1, .apr = 1,
...@@ -690,7 +690,6 @@ static struct sh_eth_cpu_data sh_eth_my_cpu_data = { ...@@ -690,7 +690,6 @@ static struct sh_eth_cpu_data sh_eth_my_cpu_data = {
.tpauser = 1, .tpauser = 1,
.hw_swap = 1, .hw_swap = 1,
}; };
#endif
static struct sh_eth_cpu_data sh771x_data = { static struct sh_eth_cpu_data sh771x_data = {
.eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff, .eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff,
...@@ -2700,6 +2699,7 @@ static const struct dev_pm_ops sh_eth_dev_pm_ops = { ...@@ -2700,6 +2699,7 @@ static const struct dev_pm_ops sh_eth_dev_pm_ops = {
#endif #endif
static struct platform_device_id sh_eth_id_table[] = { static struct platform_device_id sh_eth_id_table[] = {
{ "sh7619-ether", (kernel_ulong_t)&sh7619_data },
{ "sh771x-ether", (kernel_ulong_t)&sh771x_data }, { "sh771x-ether", (kernel_ulong_t)&sh771x_data },
{ CARDNAME }, { CARDNAME },
{ } { }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment