regulator: max8997: Fix using wrong dev argument at various places
authorAxel Lin <axel.lin@ingics.com>
Fri, 25 Jan 2013 02:26:32 +0000 (10:26 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 27 Jan 2013 02:56:13 +0000 (10:56 +0800)
commitb4895e2ca58a67ebab11f4671cc301fef0eedeb7
tree6020f72921d4380f24ada2f1ed9a6fb47d357518
parent949db153b6466c6f7cad5a427ecea94985927311
regulator: max8997: Fix using wrong dev argument at various places

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

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