]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Aug 2021 14:09:52 +0000 (15:09 +0100)
commit7fe74dfd41c428afb24e2e615470832fa997ff14
treec4e5d6364505a695d03e39c00bfbf5fa9318bdb6
parenta5e63c7d38d548b8dab6c6205e0b6af76899dbf5
net: natsemi: Fix missing pci_disable_device() in probe and remove

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>
drivers/net/ethernet/natsemi/natsemi.c