Merge tag 'powerpc-4.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[cascardo/linux.git] / arch / powerpc / platforms / 83xx / suspend.c
index fcbea4b..24717d0 100644 (file)
@@ -352,7 +352,7 @@ static int pmc_probe(struct platform_device *ofdev)
                return -ENODEV;
 
        pmc_irq = irq_of_parse_and_map(np, 0);
-       if (pmc_irq != NO_IRQ) {
+       if (pmc_irq) {
                ret = request_irq(pmc_irq, pmc_irq_handler, IRQF_SHARED,
                                  "pmc", ofdev);
 
@@ -400,7 +400,7 @@ out_syscr:
 out_pmc:
        iounmap(pmc_regs);
 out:
-       if (pmc_irq != NO_IRQ)
+       if (pmc_irq)
                free_irq(pmc_irq, ofdev);
 
        return ret;