Commit 05bbd08a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

PCI: fix bttv-driver "cleanup" that called an incorrect function.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent b72bbf98
...@@ -3942,7 +3942,7 @@ static int bttv_suspend(struct pci_dev *pci_dev, u32 state) ...@@ -3942,7 +3942,7 @@ static int bttv_suspend(struct pci_dev *pci_dev, u32 state)
/* save pci state */ /* save pci state */
pci_save_state(pci_dev); pci_save_state(pci_dev);
if (0 != pci_set_power_state(pci_dev, device_to_pci_power(pci_dev, state))) { if (0 != pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state))) {
pci_disable_device(pci_dev); pci_disable_device(pci_dev);
btv->state.disabled = 1; btv->state.disabled = 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment