]> git.baikalelectronics.ru Git - kernel.git/commit
8139too: Fix the lack of pci_disable_device
authorJia-Ju Bai <baijiaju1990@163.com>
Mon, 22 Dec 2014 00:28:52 +0000 (08:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Dec 2014 21:31:58 +0000 (16:31 -0500)
commitf8d761f8f9f9532ddb7f59a5ccb0a756f0aaf435
tree93392c3f7aeb03a7fb17cffa879f7f7fc10a3890
parentb89fd57570b3399c75df54da38a7aa5bcde4fec9
8139too: Fix the lack of pci_disable_device

For linux-3.18.0
When pci_request_regions is failed in rtl8139_init_board, pci_disable_device
is not called to disable the device which are enabled by pci_enable_device,
because of disable_dev_on_err is not assigned 1.
This patch fix this problem.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/8139too.c