mfd: palmas: Fix resource leak of i2c_dummy devices
commit5e172d751869ca6756a7276168e11d641dc6b58a
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 26 Sep 2013 13:33:51 +0000 (26 19:03 +0530)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Oct 2013 15:21:39 +0000 (23 16:21 +0100)
treed7a2438b1d237896f533ce02856a4975cf0d3553
parent7178347e1c675aefefce09357c988db0a9bf6e96
mfd: palmas: Fix resource leak of i2c_dummy devices

Palmas device supports multiple i2c device address and the client
for these addressed are created in the driver as i2c_new_dummy().

The new devices are not getting released in error or removal path and
so it is causing resource leak.

Add the unregister of these newly created dummy devices to avoid resource
leaks.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/palmas.c