]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
Gpio/trivial: replace numeric with standard PM state macros
authorYijing Wang <wangyijing@huawei.com>
Thu, 27 Jun 2013 12:58:55 +0000 (20:58 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 29 Jun 2013 23:37:07 +0000 (01:37 +0200)
Use standard PM state macros PCI_Dx instead of numeric 0/1/2..

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Cc: Michael Buesch <m@bues.ch>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Jiri Kosina <trivial@kernel.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-bt8xx.c

index 7d9d7cb35f2861ffeb0ba4f83b575a1cedb00add..8369e71ebe4f73acdf30051ff32b68812685f15f 100644 (file)
@@ -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;