diff --git a/drivers/power/gpio-charger.c b/drivers/power/gpio-charger.c index 718f2c537827a5a38ae90617bc91efb3eba9c8e0..a64b8854cfd59dcb640202e56044e77ff9e13605 100644 --- a/drivers/power/gpio-charger.c +++ b/drivers/power/gpio-charger.c @@ -127,7 +127,7 @@ static int __devinit gpio_charger_probe(struct platform_device *pdev) ret = request_any_context_irq(irq, gpio_charger_irq, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, dev_name(&pdev->dev), charger); - if (ret) + if (ret < 0) dev_warn(&pdev->dev, "Failed to request irq: %d\n", ret); else gpio_charger->irq = irq;