]> git.baikalelectronics.ru Git - kernel.git/commit
r6040: disable pci device if the subsequent calls (after pci_enable_device) fails
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 29 May 2012 13:38:42 +0000 (13:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 May 2012 02:31:08 +0000 (22:31 -0400)
commit45d89f317765a9fbf17557b90647f00eec55ff70
tree596aeee5adbf96934470576f4378a4bd9a608a95
parent6a3df8049a9887004495cd789a906c99ec09368a
r6040: disable pci device if the subsequent calls (after pci_enable_device) fails

the calls after the pci_enable_device may fail, and will error out with out
disabling it. disable the device at error paths.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rdc/r6040.c