Use standard PM state macros PCI_Dx instead of numeric 0/1/2..
Signed-off-by: Yijing Wang <[email protected]>
Cc: Michael Buesch <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Jiri Kosina <[email protected]>
Cc: [email protected]
---
drivers/gpio/gpio-bt8xx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpio/gpio-bt8xx.c b/drivers/gpio/gpio-bt8xx.c
index 7d9d7cb..8369e71 100644
--- a/drivers/gpio/gpio-bt8xx.c
+++ b/drivers/gpio/gpio-bt8xx.c
@@ -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;
--
1.7.1
On Thu, Jun 27, 2013 at 2:58 PM, Yijing Wang <[email protected]> wrote:
> Use standard PM state macros PCI_Dx instead of numeric 0/1/2..
>
> Signed-off-by: Yijing Wang <[email protected]>
> Cc: Michael Buesch <[email protected]>
> Cc: Grant Likely <[email protected]>
> Cc: Linus Walleij <[email protected]>
> Cc: Jiri Kosina <[email protected]>
> Cc: [email protected]
Patch applied.
Yours,
Linus Walleij