net: natsemi: Fix missing pci_disable_device() in probe and remove
authorWang Hai <wanghai38@huawei.com>
Sat, 31 Jul 2021 06:38:01 +0000 (14:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:22:06 +0000 (13:22 +0200)
commit4ef549dc9c1aac8d3b9180070fce1b4259c957e7
tree6b82b92ed7bc834692f9751e66b1b8902c1ef96b
parent1dc3eef381c1c5d576527f35332cf53b89a03753
net: natsemi: Fix missing pci_disable_device() in probe and remove

[ Upstream commit 7fe74dfd41c428afb24e2e615470832fa997ff14 ]

Replace pci_enable_device() with pcim_enable_device(),
pci_disable_device() and pci_release_regions() will be
called in release automatically.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/natsemi/natsemi.c