Skip to contentSkip to conversation

Gpio/trivial: replace numeric with standard PM state macros

PATCH Applied Yijing Wang 2 participants 2 messages Jun 27, 2013 – Jun 29, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/6 Gpio/trivial: replace numeric with standard PM state macros

Use standard PM state macros PCI_Dx instead of numeric 0/1/2..

Cc Michael Buesch <[email protected]>
Cc Grant Likely <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Jiri Kosina <[email protected]>
---
 drivers/gpio/gpio-bt8xx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpio/gpio-bt8xx.c +1 -1
index 7d9d7cb..8369e71 100644
@@ -286,7 +286,7 @@ static int bt8xxgpio_resume(struct pci_dev *pdev)
 	unsigned long flags;
 	int err;
 
-	pci_set_power_state(pdev, 0);
+	pci_set_power_state(pdev, PCI_D0);
 	err = pci_enable_device(pdev);
 	if (err)
 		return err;
Signature · 1 line
1.7.1