sh_eth: Remove obsolete r7s72100-ether platform_device_id entry
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 24 Nov 2015 14:40:57 +0000 (15:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Nov 2015 21:48:16 +0000 (16:48 -0500)
commit99f84be60ab1d0a89fd4215678dbc7f0392e558c
tree3c802658034f9a3cdec2f72cc07110df6ee46fff
parentbad531623253d1e1fb8d140bdc3a077216fd0c5a
sh_eth: Remove obsolete r7s72100-ether platform_device_id entry

Since commit 05104c266ae9a167 ("ARM: shmobile: r7s72100: genmai: Remove
legacy board file"), r7s72100 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 r7s72100_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 helper function, 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