]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13a013c1f9ce90b48a88d4990c6b5f079740d444
tree3fd27a4d0b8a650f66c208583dbf213db45b699c
parent880632c7e38ee140eac7cb721c76fe951fa9d23a
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: 436351e93c36 ("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