regulator: max77686: Fix using wrong dev argument at various places
authorAxel Lin <axel.lin@ingics.com>
Fri, 25 Jan 2013 02:24:18 +0000 (10:24 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 27 Jan 2013 02:54:18 +0000 (10:54 +0800)
commitb19f57589854eef5f5d252e1b63e1f3a212da2ca
tree47ef51fe23fe1df3ded199ad541ef465f9c8599c
parent949db153b6466c6f7cad5a427ecea94985927311
regulator: max77686: Fix using wrong dev argument at various places

Use &pdev->dev rather than iodev->dev for dev_err().
Use &pdev->dev rather than iodev->dev for devm_kzalloc() and
of_regulator_match(), this fixes memory leak.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max77686.c