diff options
author | Paul Burton | 2018-06-23 05:17:46 +0200 |
---|---|---|
committer | David S. Miller | 2018-06-23 13:52:08 +0200 |
commit | 3ef594b0e465c4dd7b1ea7736dfc4bb80c53e33d (patch) | |
tree | 02406a8fb64266419510044037117bf714f00100 /drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h | |
parent | net: pch_gbe: Remove {read,write}_phy_reg HAL abstraction (diff) | |
download | kernel-qcow2-linux-3ef594b0e465c4dd7b1ea7736dfc4bb80c53e33d.tar.gz kernel-qcow2-linux-3ef594b0e465c4dd7b1ea7736dfc4bb80c53e33d.tar.xz kernel-qcow2-linux-3ef594b0e465c4dd7b1ea7736dfc4bb80c53e33d.zip |
net: pch_gbe: Remove init_hw HAL abstraction
For some reason the pch_gbe driver contains a struct pch_gbe_functions
with pointers used by a HAL abstraction layer, even though there is only
one implementation of each function.
This patch removes the init_hw abstraction in favor of inlining its
single implementation (pch_gbe_plat_init_hw) into its single caller
(pch_gbe_reset).
Signed-off-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h')
-rw-r--r-- | drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h index 728e876bffc6..2e824baff9d7 100644 --- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h +++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h @@ -331,11 +331,9 @@ struct pch_gbe_hw; /** * struct pch_gbe_functions - HAL APi function pointer * @get_bus_info: for pch_gbe_hal_get_bus_info - * @init_hw: for pch_gbe_hal_init_hw */ struct pch_gbe_functions { void (*get_bus_info) (struct pch_gbe_hw *); - s32 (*init_hw) (struct pch_gbe_hw *); }; /** |