]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28252847d4096edb5f1ba21c5b6a7dde6be07539
treed331d61a33f46e75b750c5cc60753609d7b05957
parent2ce253511e467004454e24b36daf30cd4f7ce0c3
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