mc13783-regulator: fix a memory leak in mc13783_regulator_remove
authorAxel Lin <axel.lin@gmail.com>
Mon, 19 Apr 2010 01:58:02 +0000 (09:58 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 19 Apr 2010 12:29:16 +0000 (13:29 +0100)
commit58d57658834faa0c19da35e84632f7b78846f69f
tree412243f269fbc8b151c19113e576660590b31711
parentbe1a50d4eba4cdb3ebf9d97a0a8693c153436775
mc13783-regulator: fix a memory leak in mc13783_regulator_remove

This patch fixes a memory leak by freeing priv in mc13783_regulator_remove

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/mc13783-regulator.c