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)
commitacaf8276823302983d681c2cedaaf01918406935
tree596aeee5adbf96934470576f4378a4bd9a608a95
parent617c8c11236716dcbda877e764b7bf37c6fd8063
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