net: enetc: Use pci_release_region() to release some resources
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 27 May 2022 09:25:47 +0000 (11:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 May 2022 19:20:42 +0000 (20:20 +0100)
commit18eeb4dea65cb587057740d6b7b71a13bcfececd
tree3fd27a4d0b8a650f66c208583dbf213db45b699c
parent5e1eeef69c0fef6249b794bda5d68f95a65d062f
net: enetc: Use pci_release_region() to release some resources

Some resources are allocated using pci_request_region().
It is more straightforward to release them with pci_release_region().

Fixes: 231ece36f50d ("enetc: Add mdio bus driver for the PCIe MDIO endpoint")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c