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)
commita0f48be33c666b11a633a94414744adbb653ecd9
tree2ac519151dfc91973bb3edbe842c6f150046bc95
parentc74a2248f937d857a98e927f3e3c56d3dde61e14
sh_eth: Remove obsolete r8a7740-gether platform_device_id entry

Since commit 1fa59bda21c7fa36 ("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