Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: pxa: use PWM lookup table for all machines

The recent change to use a pwm lookup table for the ezx machines
was incomplete and only changed the a780 model, but not the
other ones in the same file.

This adds the missing calls to pwm_add_table().

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: c3322022897c ("ARM: pxa: ezx: Use PWM lookup table")
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>

+5
+5
arch/arm/mach-pxa/ezx.c
··· 889 889 890 890 pxa_set_keypad_info(&e680_keypad_platform_data); 891 891 892 + pwm_add_table(ezx_pwm_lookup, ARRAY_SIZE(ezx_pwm_lookup)); 892 893 platform_add_devices(ARRAY_AND_SIZE(ezx_devices)); 893 894 platform_add_devices(ARRAY_AND_SIZE(e680_devices)); 894 895 } ··· 957 956 958 957 pxa_set_keypad_info(&a1200_keypad_platform_data); 959 958 959 + pwm_add_table(ezx_pwm_lookup, ARRAY_SIZE(ezx_pwm_lookup)); 960 960 platform_add_devices(ARRAY_AND_SIZE(ezx_devices)); 961 961 platform_add_devices(ARRAY_AND_SIZE(a1200_devices)); 962 962 } ··· 1150 1148 platform_device_register(&a910_camera); 1151 1149 } 1152 1150 1151 + pwm_add_table(ezx_pwm_lookup, ARRAY_SIZE(ezx_pwm_lookup)); 1153 1152 platform_add_devices(ARRAY_AND_SIZE(ezx_devices)); 1154 1153 platform_add_devices(ARRAY_AND_SIZE(a910_devices)); 1155 1154 } ··· 1218 1215 1219 1216 pxa_set_keypad_info(&e6_keypad_platform_data); 1220 1217 1218 + pwm_add_table(ezx_pwm_lookup, ARRAY_SIZE(ezx_pwm_lookup)); 1221 1219 platform_add_devices(ARRAY_AND_SIZE(ezx_devices)); 1222 1220 platform_add_devices(ARRAY_AND_SIZE(e6_devices)); 1223 1221 } ··· 1260 1256 1261 1257 pxa_set_keypad_info(&e2_keypad_platform_data); 1262 1258 1259 + pwm_add_table(ezx_pwm_lookup, ARRAY_SIZE(ezx_pwm_lookup)); 1263 1260 platform_add_devices(ARRAY_AND_SIZE(ezx_devices)); 1264 1261 platform_add_devices(ARRAY_AND_SIZE(e2_devices)); 1265 1262 }