OSDN Git Service

mfd: da9063: Replace regmap_add_irq_chip with devm counterpart
authorMarek Vasut <marek.vasut@gmail.com>
Mon, 11 Jun 2018 11:58:38 +0000 (13:58 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 4 Jul 2018 06:15:29 +0000 (07:15 +0100)
commit7494de0454af50215bc46c93c83b88a32ca39fab
treee6ffc3743c2a9fc1f071c23100818323a9bd65ed
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
mfd: da9063: Replace regmap_add_irq_chip with devm counterpart

Use devm_regmap_add_irq_chip() instead of plain regmap_add_irq_chip(),
which removes the need for da9063_irq_exit() altogether and also
fixes a bug in da9063_device_init() where the da9063_irq_exit() was
not called in a failpath.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9063-core.c
drivers/mfd/da9063-irq.c
include/linux/mfd/da9063/core.h