stmmac: intel: use managed PCI function on probe and resume
authorWong Vee Khee <vee.khee.wong@linux.intel.com>
Thu, 1 Apr 2021 06:02:50 +0000 (14:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Apr 2021 22:48:29 +0000 (15:48 -0700)
commit8accc467758efd3a03368f9fec633b04dde80895
treed331d61a33f46e75b750c5cc60753609d7b05957
parentb7a320c3a1ecb20d24173b668288441dbb7fe7dd
stmmac: intel: use managed PCI function on probe and resume

Update dwmac-intel to use managed function, i.e. pcim_enable_device().

This will allow devres framework to call resource free function for us.

Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c