Current code uses devm_request_threaded_irq() so it does not need to
explicitly call free_irq() in .probe error path and .remove.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
dev_err(&i2c_client->dev,
"Failed to enable core supplies: %d\n",
ret);
- goto err_irq;
+ return ret;
}
if (cs35l33->reset_gpio)
if (ret < 0) {
dev_err(&i2c_client->dev, "%s: Register codec failed\n",
__func__);
- goto err_irq;
+ goto err_enable;
}
return 0;
err_enable:
regulator_bulk_disable(cs35l33->num_core_supplies,
cs35l33->core_supplies);
-err_irq:
- free_irq(i2c_client->irq, cs35l33);
return ret;
}
pm_runtime_disable(&client->dev);
regulator_bulk_disable(cs35l33->num_core_supplies,
cs35l33->core_supplies);
- free_irq(client->irq, cs35l33);
return 0;
}