]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit285a189076f99292b37236088caee95a32452b55
treee70a352cd9ae7ead027da18f49a1340c9dacbe08
parent2c330c6920f39911deb517579e21af51879108f5
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