From: Rafael J. Wysocki Date: Wed, 7 Jan 2009 12:03:42 +0000 (+0100) Subject: PCI PM: Add suspend counterpart of pci_reenable_device X-Git-Tag: v2.6.29-rc1~181^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa58d305d9925b01830e535896a7227a868a9e15;p=pandora-kernel.git PCI PM: Add suspend counterpart of pci_reenable_device PCI devices without drivers are not disabled during suspend and hibernation, but they are enabled during resume, with the help of pci_reenable_device(), so there is an unbalanced execution of pcibios_enable_device() in the resume code path. To correct this introduce function pci_disable_enabled_device() that will disable the argument device, if it is enabled when the function is being run, without updating the device's pci_dev structure and use it in the suspend code path to balance the pci_reenable_device() executed during resume. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed