net: pch_gbe: Remove pch_gbe_hal_setup_init_funcs
authorPaul Burton <paul.burton@mips.com>
Sat, 23 Jun 2018 03:17:48 +0000 (20:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2018 11:52:08 +0000 (20:52 +0900)
commitc63ebdf01ad96d8c11ab3ff245a3acd30e7fc8ba
treef16626b2d0cedf57e35087b5b4c1144e50299961
parentb02c38a23a5a308466d6cf87895ef16b6fa3306c
net: pch_gbe: Remove pch_gbe_hal_setup_init_funcs

The pch_gbe driver calls a pch_gbe_hal_setup_init_funcs function which
ultimately sets the value of one field in struct pch_gbe_phy_info in a
convoluted way.

This patch removes pch_gbe_hal_setup_init_funcs in favor of inlining it,
and in turn its callee pch_gbe_plat_init_function_pointers, into the
single caller pch_gbe_sw_init.

With this pch_gbe_api.c & pch_gbe_api.h are essentially empty, so they
are removed & inclusions of the latter replaced with pch_gbe_phy.h which
was previously being included via pch_gbe_api.h.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/Makefile
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_api.c [deleted file]
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_api.h [deleted file]
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c