regulator: ad5398 - fix a memory leak
authorAxel Lin <axel.lin@gmail.com>
Wed, 1 Sep 2010 02:29:18 +0000 (10:29 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 1 Sep 2010 11:59:35 +0000 (12:59 +0100)
commit58d463eec844f6381d63d04dc89d319ae3057ca9
treeeff53b1e4ed4fd774b8069978da1347fbd93cab1
parent606b2f490fb80e55d05cf0e6cec0b6c0ff0fc18f
regulator: ad5398 - fix a memory leak

In current implementation, the address return from regulator_register()
is different from the address for regulator_unregister().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/ad5398.c