]> git.baikalelectronics.ru Git - kernel.git/commit
tulip: windbond-840: Fix missing pci_disable_device() in probe and remove
authorWang Hai <wanghai38@huawei.com>
Wed, 28 Jul 2021 07:43:13 +0000 (15:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Aug 2021 10:27:40 +0000 (12:27 +0200)
commit75c084b64dcd12fd5d952cfe6338dce9f468325f
tree8dcdf2bc26190c171f983768788568bcba111573
parent53f5aa519de7aaac3cda0a249825e1eacee349bb
tulip: windbond-840: Fix missing pci_disable_device() in probe and remove

[ Upstream commit 76a16be07b209a3f507c72abe823bd3af1c8661a ]

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/dec/tulip/winbond-840.c