diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-05-30 17:24:58 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-31 06:23:42 -0400 |
commit | 2b6c00c157c5bf80417f6b814f1088da2dc588ee (patch) | |
tree | 389a5ef151ebfce20d2bb81c016f1d40bcf12c4e | |
parent | 38de19fa7159838fbe180e859cb46501d9fca4f4 (diff) |
ARM: pxa, regulator: fix building ezx e680
The reference to camera_supply_gpiod_table was added in the wrong function,
as observed from this randconfig build failure:
arch/arm/mach-pxa/ezx.c: In function 'e680_init':
arch/arm/mach-pxa/ezx.c:905:26: error: 'camera_supply_gpiod_table' undeclared (first use in this function)
gpiod_add_lookup_table(&camera_supply_gpiod_table);
Fixes: 6059577cb28d ("regulator: fixed: Convert to use GPIO descriptor only")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | arch/arm/mach-pxa/ezx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/ezx.c b/arch/arm/mach-pxa/ezx.c index 2b4bd6d94855..4f33eea73f9a 100644 --- a/arch/arm/mach-pxa/ezx.c +++ b/arch/arm/mach-pxa/ezx.c | |||
@@ -902,7 +902,6 @@ static void __init e680_init(void) | |||
902 | 902 | ||
903 | pxa_set_keypad_info(&e680_keypad_platform_data); | 903 | pxa_set_keypad_info(&e680_keypad_platform_data); |
904 | 904 | ||
905 | gpiod_add_lookup_table(&camera_supply_gpiod_table); | ||
906 | pwm_add_table(ezx_pwm_lookup, ARRAY_SIZE(ezx_pwm_lookup)); | 905 | pwm_add_table(ezx_pwm_lookup, ARRAY_SIZE(ezx_pwm_lookup)); |
907 | platform_add_devices(ARRAY_AND_SIZE(ezx_devices)); | 906 | platform_add_devices(ARRAY_AND_SIZE(ezx_devices)); |
908 | platform_add_devices(ARRAY_AND_SIZE(e680_devices)); | 907 | platform_add_devices(ARRAY_AND_SIZE(e680_devices)); |
@@ -1132,6 +1131,7 @@ static void __init a910_init(void) | |||
1132 | if (a910_camera_init() == 0) | 1131 | if (a910_camera_init() == 0) |
1133 | pxa_set_camera_info(&a910_pxacamera_platform_data); | 1132 | pxa_set_camera_info(&a910_pxacamera_platform_data); |
1134 | 1133 | ||
1134 | gpiod_add_lookup_table(&camera_supply_gpiod_table); | ||
1135 | pwm_add_table(ezx_pwm_lookup, ARRAY_SIZE(ezx_pwm_lookup)); | 1135 | pwm_add_table(ezx_pwm_lookup, ARRAY_SIZE(ezx_pwm_lookup)); |
1136 | platform_add_devices(ARRAY_AND_SIZE(ezx_devices)); | 1136 | platform_add_devices(ARRAY_AND_SIZE(ezx_devices)); |
1137 | platform_add_devices(ARRAY_AND_SIZE(a910_devices)); | 1137 | platform_add_devices(ARRAY_AND_SIZE(a910_devices)); |