Skip to content

Commit

Permalink
sh_eth: Remove obsolete r8a777x-ether platform_device_id entry
Browse files Browse the repository at this point in the history
Since commit 3d7608e ("ARM: shmobile: bockw: remove legacy
board file and config"), R-Car Gen1 SoCs are only supported in generic
DT-only ARM multi-platform builds.  The driver doesn't need to match
platform devices by name anymore, hence remove the corresponding
platform_device_id entry.

Protect sh_eth_set_rate_r8a777x() and r8a777x_data by #ifdef CONFIG_OF,
as they're now referenced on DT platforms only.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Geert Uytterhoeven authored and David S. Miller committed Nov 24, 2015
1 parent a0f48be commit 1af2729
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/ethernet/renesas/sh_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ static struct sh_eth_cpu_data r8a7740_data = {
.select_mii = 1,
.shift_rd0 = 1,
};
#endif /* CONFIG_OF */

/* There is CPU dependent code */
static void sh_eth_set_rate_r8a777x(struct net_device *ndev)
Expand Down Expand Up @@ -593,7 +592,6 @@ static struct sh_eth_cpu_data r8a777x_data = {
.hw_swap = 1,
};

#ifdef CONFIG_OF
/* R8A7790/1 */
static struct sh_eth_cpu_data r8a779x_data = {
.set_duplex = sh_eth_set_duplex,
Expand Down Expand Up @@ -3281,7 +3279,6 @@ static struct platform_device_id sh_eth_id_table[] = {
{ "sh7757-ether", (kernel_ulong_t)&sh7757_data },
{ "sh7757-gether", (kernel_ulong_t)&sh7757_data_giga },
{ "sh7763-gether", (kernel_ulong_t)&sh7763_data },
{ "r8a777x-ether", (kernel_ulong_t)&r8a777x_data },
{ }
};
MODULE_DEVICE_TABLE(platform, sh_eth_id_table);
Expand Down

0 comments on commit 1af2729

Please sign in to comment.