ssb/trivial: replace numeric with standard PM state macros
authorYijing Wang <wangyijing@huawei.com>
Thu, 27 Jun 2013 13:00:11 +0000 (21:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jun 2013 05:11:48 +0000 (22:11 -0700)
Use standard PM state macros PCI_Dx instead of numeric 0/1/2..

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ssb/pcihost_wrapper.c

index 32ed1fa4a82eae28cad87ea0eeb77333dbe7b8e2..69161bbc4d0b37f135afeebfaac7e2a3c548e685 100644 (file)
@@ -38,7 +38,7 @@ static int ssb_pcihost_resume(struct pci_dev *dev)
        struct ssb_bus *ssb = pci_get_drvdata(dev);
        int err;
 
-       pci_set_power_state(dev, 0);
+       pci_set_power_state(dev, PCI_D0);
        err = pci_enable_device(dev);
        if (err)
                return err;