sh_eth: get SH7757 support out of #ifdef
Get the SH7757 code/data in the driver out of #ifdef by adding "sh7757-ether" and "sh7757-gether" to the platform driver's ID table. Note that we can remove SH_ETH_HAS_BOTH_MODULES and sh_eth_get_cpu_data(). Change the Ether/GEther platform devices' names in the SH platform code accordingly. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

orang tua
f5d12767c8
melakukan
24549e2a0f
@@ -82,7 +82,7 @@ static struct sh_eth_plat_data sh7757_eth0_pdata = {
|
||||
};
|
||||
|
||||
static struct platform_device sh7757_eth0_device = {
|
||||
.name = "sh-eth",
|
||||
.name = "sh7757-ether",
|
||||
.resource = sh_eth0_resources,
|
||||
.id = 0,
|
||||
.num_resources = ARRAY_SIZE(sh_eth0_resources),
|
||||
@@ -111,7 +111,7 @@ static struct sh_eth_plat_data sh7757_eth1_pdata = {
|
||||
};
|
||||
|
||||
static struct platform_device sh7757_eth1_device = {
|
||||
.name = "sh-eth",
|
||||
.name = "sh7757-ether",
|
||||
.resource = sh_eth1_resources,
|
||||
.id = 1,
|
||||
.num_resources = ARRAY_SIZE(sh_eth1_resources),
|
||||
@@ -157,7 +157,7 @@ static struct sh_eth_plat_data sh7757_eth_giga0_pdata = {
|
||||
};
|
||||
|
||||
static struct platform_device sh7757_eth_giga0_device = {
|
||||
.name = "sh-eth",
|
||||
.name = "sh7757-gether",
|
||||
.resource = sh_eth_giga0_resources,
|
||||
.id = 2,
|
||||
.num_resources = ARRAY_SIZE(sh_eth_giga0_resources),
|
||||
@@ -192,7 +192,7 @@ static struct sh_eth_plat_data sh7757_eth_giga1_pdata = {
|
||||
};
|
||||
|
||||
static struct platform_device sh7757_eth_giga1_device = {
|
||||
.name = "sh-eth",
|
||||
.name = "sh7757-gether",
|
||||
.resource = sh_eth_giga1_resources,
|
||||
.id = 3,
|
||||
.num_resources = ARRAY_SIZE(sh_eth_giga1_resources),
|
||||
|
Reference in New Issue
Block a user