regulator: Ensure val is initialised in 88pm8607 choose_voltage()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 22 Oct 2009 15:31:35 +0000 (16:31 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Thu, 17 Dec 2009 10:27:25 +0000 (10:27 +0000)
commitddec68107ab101d9ff934811d5598f5c613027f2
treea0e561eee13ea0001100180c7859043334676b11
parent9992ef40ff2e16559e49ff1ae63d133cb9849e8f
regulator: Ensure val is initialised in 88pm8607 choose_voltage()

If we fall through it means that we hit an unknown regulator/chip
combination so set -ENOENT as an explicit flag (the return code
is only used internally).

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/88pm8607.c