mfd: Don't free unallocated arizona supplies on error
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 8 Jul 2012 22:45:53 +0000 (00:45 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 8 Jul 2012 22:45:53 +0000 (00:45 +0200)
commit3a36a0db5b0f77ff71a9df23db9f4044e04590d8
tree2c681a5c6af9c6507959b4a5cfbc4dee6cffc7e3
parent863df8d5f1a1a92016e24c80947cb3509b8aaa48
mfd: Don't free unallocated arizona supplies on error

ARRAY_SIZE() may be larger than the number of supplies actually used.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/arizona-core.c