mfd: arizona: Use correct array for ARRAY_SIZE in mfd_add_devices call
Subsystems (2)
PATCH 1/2 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 <[email protected]>
--- drivers/mfd/arizona-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mfd/arizona-core.c +1 -1
@@ -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 ; }
Signature · 1 line
1.7.2.5
Quoted 4 lines · Charles Keepax
wm5102_devsarray was used forARRAY_SIZEwhilst adding the wm5110 devices. This change corrects this to get the size from thewm5110_devsarray. As both arrays are the same size no issues should have been caused by this bug.
Reviewed-by Mark Brown <[email protected]>