sis900: Fix missing pci_disable_device() in probe and remove
authorWang Hai <wanghai38@huawei.com>
Wed, 28 Jul 2021 12:11:07 +0000 (20:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Aug 2021 09:58:04 +0000 (11:58 +0200)
commitf91217dee76b281a797bff055a5c04f18d263c0f
tree3d6c99643848cacc2daef023a73f99512a88050d
parente7500fd7b9c8dbe054736009584fa06456bc9ae8
sis900: Fix missing pci_disable_device() in probe and remove

[ Upstream commit 89fb62fde3b226f99b7015280cf132e2a7438edf ]

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/sis/sis900.c