mfd: arizona: Use correct array for ARRAY_SIZE in mfd_add_devices call
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 20 Nov 2012 04:46:19 +0000 (13:46 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 20 Nov 2012 11:46:45 +0000 (12:46 +0100)
commit78566afd8647654b2fb11c3ae13b3d8fe96a8cfe
treee70a352cd9ae7ead027da18f49a1340c9dacbe08
parent944b058258da8a40c13300f374dbfc2617a9190d
mfd: arizona: Use correct array for ARRAY_SIZE in mfd_add_devices call

wm5102_devs array was used for ARRAY_SIZE whilst adding the wm5110
devices. This change corrects this to get the size from the wm5110_devs
array. As both arrays are the same size no issues should have been
caused by this bug.

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