mfd: tps65910: Fix regmap_irq_chip_data leak on mfd_add_devices fail
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 12 Mar 2014 15:50:45 +0000 (16:50 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 09:06:10 +0000 (09:06 +0000)
commit742766aac563ea1c28e9f86ed53db757a2872081
tree1dd05404f302febd8915f3a6ae0b4f6806fb3ac2
parent483e2dfdbc94751430e41db9973985f5b054d322
mfd: tps65910: Fix regmap_irq_chip_data leak on mfd_add_devices fail

The tps65910_i2c_probe() allocates regmap_irq_chip in
tps65910_irq_init() but it does not clean this up in case of
mfd_add_devices() failure.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps65910.c