]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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)
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

index 1b48f2094806c75fa8914657978f1b7bf814ae93..166254bba4c267edc38d803bd26422e266167f1d 100644 (file)
@@ -520,7 +520,7 @@ int __devinit arizona_dev_init(struct arizona *arizona)
                break;
        case WM5110:
                ret = mfd_add_devices(arizona->dev, -1, wm5110_devs,
-                                     ARRAY_SIZE(wm5102_devs), NULL, 0, NULL);
+                                     ARRAY_SIZE(wm5110_devs), NULL, 0, NULL);
                break;
        }