]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: Remove obsolete r8a7740-gether platform_device_id entry
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 24 Nov 2015 14:40:59 +0000 (15:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Nov 2015 21:48:17 +0000 (16:48 -0500)
commit102170c58b922438297746afd01e23440f972441
tree2ac519151dfc91973bb3edbe842c6f150046bc95
parente30c077eae98bfb4017a00102fa515a4290bb662
sh_eth: Remove obsolete r8a7740-gether platform_device_id entry

Since commit 3e221ae32f29eb4e ("ARM: shmobile: Remove legacy board code
for Armadillo-800 EVA"), r8a7740 is 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 r8a7740_data by #ifdef CONFIG_OF as it's now referenced on DT
platforms only. Move it to a more logical position, in front of the
r8a777x support, so we can have a single #ifdef covering all r7s* and
r8a* support soon. This requires moving a few helper functions, too.

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>
drivers/net/ethernet/renesas/sh_eth.c