PCIE: cleanup on probe error
authorRandy Dunlap <rdunlap@xenotime.net>
Fri, 7 Jul 2006 04:36:01 +0000 (21:36 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 Aug 2006 20:20:06 +0000 (13:20 -0700)
commite4fd1f4a6e05335d464fe003c164fea850a3b3f3
treefa1ed3dd97707d1a942f79ff8c8acfd32e2c2273
parent60854838596906ebae7f32e4de921e150e669b60
PCIE: cleanup on probe error

If pcie_portdrv_probe() fails but it had already called
pci_enable_device(), then call pci_disable_device() when
returning error.

Is there some reason that this isn't being done?
or was it just missed?

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pcie/portdrv_pci.c