diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-06-07 10:03:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-08 02:38:24 -0400 |
commit | 9c3beaabb951d672b1534c7f56f84054b088f879 (patch) | |
tree | 72a386b534ab160e9e72aa4c0907884dd6b51353 | |
parent | 24549e2a0f33628b5160eac16c6aebf1cfaf22f1 (diff) |
sh_eth: get SH7724 support out of #ifdef
Get the SH7724 code/data in the driver out of #ifdef by adding "r8a7724-ether"
to the platform driver's ID table. Change the Ether platform device's name in
the SH platform code accordingly.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7724.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 10 |
4 files changed, 10 insertions, 10 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 764530c85aa9..61fade0ffa96 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -165,8 +165,8 @@ static struct sh_eth_plat_data sh_eth_plat = { | |||
165 | }; | 165 | }; |
166 | 166 | ||
167 | static struct platform_device sh_eth_device = { | 167 | static struct platform_device sh_eth_device = { |
168 | .name = "sh-eth", | 168 | .name = "sh7724-ether", |
169 | .id = 0, | 169 | .id = 0, |
170 | .dev = { | 170 | .dev = { |
171 | .platform_data = &sh_eth_plat, | 171 | .platform_data = &sh_eth_plat, |
172 | }, | 172 | }, |
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index 4010e63e82d8..b70180ef3e29 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -380,8 +380,8 @@ static struct sh_eth_plat_data sh_eth_plat = { | |||
380 | }; | 380 | }; |
381 | 381 | ||
382 | static struct platform_device sh_eth_device = { | 382 | static struct platform_device sh_eth_device = { |
383 | .name = "sh-eth", | 383 | .name = "sh7724-ether", |
384 | .id = 0, | 384 | .id = 0, |
385 | .dev = { | 385 | .dev = { |
386 | .platform_data = &sh_eth_plat, | 386 | .platform_data = &sh_eth_plat, |
387 | }, | 387 | }, |
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c index 5f30f805d2f2..0128af3399b7 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c | |||
@@ -329,7 +329,7 @@ static struct clk_lookup lookups[] = { | |||
329 | CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[HWBLK_IIC0]), | 329 | CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[HWBLK_IIC0]), |
330 | CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[HWBLK_IIC1]), | 330 | CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[HWBLK_IIC1]), |
331 | CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[HWBLK_MMC]), | 331 | CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[HWBLK_MMC]), |
332 | CLKDEV_DEV_ID("sh-eth.0", &mstp_clks[HWBLK_ETHER]), | 332 | CLKDEV_DEV_ID("sh7724-ether.0", &mstp_clks[HWBLK_ETHER]), |
333 | CLKDEV_CON_ID("atapi0", &mstp_clks[HWBLK_ATAPI]), | 333 | CLKDEV_CON_ID("atapi0", &mstp_clks[HWBLK_ATAPI]), |
334 | CLKDEV_CON_ID("tpu0", &mstp_clks[HWBLK_TPU]), | 334 | CLKDEV_CON_ID("tpu0", &mstp_clks[HWBLK_TPU]), |
335 | CLKDEV_CON_ID("irda0", &mstp_clks[HWBLK_IRDA]), | 335 | CLKDEV_CON_ID("irda0", &mstp_clks[HWBLK_IRDA]), |
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 9860fc028f3d..143e22e1b329 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c | |||
@@ -392,9 +392,9 @@ static struct sh_eth_cpu_data sh_eth_my_cpu_data = { | |||
392 | .tpauser = 1, | 392 | .tpauser = 1, |
393 | .hw_swap = 1, | 393 | .hw_swap = 1, |
394 | }; | 394 | }; |
395 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) | 395 | #endif |
396 | 396 | ||
397 | static void sh_eth_set_rate(struct net_device *ndev) | 397 | static void sh_eth_set_rate_sh7724(struct net_device *ndev) |
398 | { | 398 | { |
399 | struct sh_eth_private *mdp = netdev_priv(ndev); | 399 | struct sh_eth_private *mdp = netdev_priv(ndev); |
400 | 400 | ||
@@ -411,9 +411,9 @@ static void sh_eth_set_rate(struct net_device *ndev) | |||
411 | } | 411 | } |
412 | 412 | ||
413 | /* SH7724 */ | 413 | /* SH7724 */ |
414 | static struct sh_eth_cpu_data sh_eth_my_cpu_data = { | 414 | static struct sh_eth_cpu_data sh7724_data = { |
415 | .set_duplex = sh_eth_set_duplex, | 415 | .set_duplex = sh_eth_set_duplex, |
416 | .set_rate = sh_eth_set_rate, | 416 | .set_rate = sh_eth_set_rate_sh7724, |
417 | 417 | ||
418 | .ecsr_value = ECSR_PSRTO | ECSR_LCHNG | ECSR_ICD, | 418 | .ecsr_value = ECSR_PSRTO | ECSR_LCHNG | ECSR_ICD, |
419 | .ecsipr_value = ECSIPR_PSRTOIP | ECSIPR_LCHNGIP | ECSIPR_ICDIP, | 419 | .ecsipr_value = ECSIPR_PSRTOIP | ECSIPR_LCHNGIP | ECSIPR_ICDIP, |
@@ -431,7 +431,6 @@ static struct sh_eth_cpu_data sh_eth_my_cpu_data = { | |||
431 | .rpadir = 1, | 431 | .rpadir = 1, |
432 | .rpadir_value = 0x00020000, /* NET_IP_ALIGN assumed to be 2 */ | 432 | .rpadir_value = 0x00020000, /* NET_IP_ALIGN assumed to be 2 */ |
433 | }; | 433 | }; |
434 | #endif | ||
435 | 434 | ||
436 | static void sh_eth_set_rate_sh7757(struct net_device *ndev) | 435 | static void sh_eth_set_rate_sh7757(struct net_device *ndev) |
437 | { | 436 | { |
@@ -2687,6 +2686,7 @@ static const struct dev_pm_ops sh_eth_dev_pm_ops = { | |||
2687 | static struct platform_device_id sh_eth_id_table[] = { | 2686 | static struct platform_device_id sh_eth_id_table[] = { |
2688 | { "sh7619-ether", (kernel_ulong_t)&sh7619_data }, | 2687 | { "sh7619-ether", (kernel_ulong_t)&sh7619_data }, |
2689 | { "sh771x-ether", (kernel_ulong_t)&sh771x_data }, | 2688 | { "sh771x-ether", (kernel_ulong_t)&sh771x_data }, |
2689 | { "sh7724-ether", (kernel_ulong_t)&sh7724_data }, | ||
2690 | { "sh7734-gether", (kernel_ulong_t)&sh7734_data }, | 2690 | { "sh7734-gether", (kernel_ulong_t)&sh7734_data }, |
2691 | { "sh7757-ether", (kernel_ulong_t)&sh7757_data }, | 2691 | { "sh7757-ether", (kernel_ulong_t)&sh7757_data }, |
2692 | { "sh7757-gether", (kernel_ulong_t)&sh7757_data_giga }, | 2692 | { "sh7757-gether", (kernel_ulong_t)&sh7757_data_giga }, |