Re: [PATCH v6 3/6] power: Add support for DA9150 Fuel-Gauge

From: Fabio Estevam
Date: Mon Oct 05 2015 - 12:10:21 EST


On Mon, Oct 5, 2015 at 1:03 PM, Adam Thomson
<Adam.Thomson.Opensource@xxxxxxxxxxx> wrote:

> + /* Register IRQ */
> + irq = platform_get_irq_byname(pdev, "FG");
> + if (irq < 0) {
> + dev_err(dev, "Failed to get IRQ FG: %d\n", irq);

You need to do "ret = irq" here. Otherwise you will return success in irq_fail.

> + goto irq_fail;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/