]> git.karo-electronics.de Git - linux-beck.git/commitdiff
vt6655/trivial: replace numeric with standard PM state macros
authorYijing Wang <wangyijing@huawei.com>
Thu, 27 Jun 2013 12:57:23 +0000 (20:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 23:30:06 +0000 (16:30 -0700)
Use standard PM state macros PCI_Dx instead of numeric 0/1/2..

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Jiri Kosina <trivial@kernel.org>
Cc: Devendra Naga <devendra.aaru@gmail.com>
Cc: Joe Perches <joe@perches.com>
Cc: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index 08b250f01dae6e7fd2f323cf9f7a06920266fe11..7f36a7103c3ef3812c20963d9f6ab6a51757069b 100644 (file)
@@ -3370,8 +3370,8 @@ viawget_resume(struct pci_dev *pcid)
        PSMgmtObject  pMgmt = pDevice->pMgmt;
        int power_status;   // to silence the compiler
 
-       power_status = pci_set_power_state(pcid, 0);
-       power_status = pci_enable_wake(pcid, 0, 0);
+       power_status = pci_set_power_state(pcid, PCI_D0);
+       power_status = pci_enable_wake(pcid, PCI_D0, 0);
        pci_restore_state(pcid);
        if (netif_running(pDevice->dev)) {
                spin_lock_irq(&pDevice->lock);