regulator: fix dangling pointers
authorWolfram Sang <w.sang@pengutronix.de>
Sat, 20 Mar 2010 14:12:58 +0000 (15:12 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 22 Mar 2010 19:46:16 +0000 (19:46 +0000)
Fix I2C-drivers which missed setting clientdata to NULL before freeing the
structure it points to. Also fix drivers which do this _after_ the structure
was freed already.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/max1586.c
drivers/regulator/max8649.c
drivers/regulator/max8660.c

Simple merge
Simple merge
Simple merge