Do a quick refactor of igb to clean up some unnecessary declarations, noticed while doing the real work of 2/2.
Follow that with a change of all the Intel drivers to use the current power management declaration APIs, to avoid complication and maintenance issues with CONFIG_PM=<m|y|n>. This is as per [1] Mostly compile-tested only, the ice driver currently has a bug in it that causes a panic that is being fixed via -net. Changes in v2: - ice driver simple changes added which go with this series - igb compilation issues of the patch when standalone with CONFIG_PM=n fixed by adding missing ifdef, which is then cleaned up in 2/2 original v1: Link: https://lore.kernel.org/netdev/[email protected]/ [1] https://lore.kernel.org/netdev/[email protected]/ Jesse Brandeburg (2): igb: simplify pci ops declaration net: intel: implement modern PM ops declarations drivers/net/ethernet/intel/e100.c | 8 +-- drivers/net/ethernet/intel/e1000/e1000_main.c | 14 ++--- drivers/net/ethernet/intel/e1000e/netdev.c | 22 +++---- drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 10 ++-- drivers/net/ethernet/intel/i40e/i40e_main.c | 10 ++-- drivers/net/ethernet/intel/iavf/iavf_main.c | 8 +-- drivers/net/ethernet/intel/ice/ice_main.c | 12 ++-- drivers/net/ethernet/intel/igb/igb_main.c | 59 ++++++++----------- drivers/net/ethernet/intel/igbvf/netdev.c | 6 +- drivers/net/ethernet/intel/igc/igc_main.c | 24 +++----- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 8 +-- .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 8 +-- 12 files changed, 78 insertions(+), 111 deletions(-) base-commit: 60d06425e04558be21634a719b5c60c9bd862c34 -- 2.39.3
