• Home
  • Kernel
  • Kernel compilation error – ‘BRAVO_TPS65023_MAX_UV_MV’ undeclared (first use in this function)

Kernel compilation error – ‘BRAVO_TPS65023_MAX_UV_MV’ undeclared (first use in this function)

arch/arm/mach-msm/avs.c: In function 'avs_update_voltage_table':
arch/arm/mach-msm/avs.c:231:22: error: 'BRAVO_TPS65023_MAX_UV_MV' undeclared (first use in this function)
arch/arm/mach-msm/avs.c:231:22: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/avs.c:246:38: error: 'BRAVO_TPS65023_MIN_UV_MV' undeclared (first use in this function)
arch/arm/mach-msm/avs.c: In function 'avs_get_target_voltage':
arch/arm/mach-msm/avs.c:276:46: error: 'BRAVO_TPS65023_MAX_UV_MV' undeclared (first use in this function)
arch/arm/mach-msm/avs.c: In function 'avs_init':
arch/arm/mach-msm/avs.c:437:24: error: 'BRAVO_TPS65023_MAX_UV_MV' undeclared (first use in this function)
make[1]: *** [arch/arm/mach-msm/avs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
LD lib/zlib_inflate/zlib_inflate.o
LD lib/zlib_inflate/built-in.o
LD lib/zlib_deflate/zlib_deflate.o
LD lib/zlib_deflate/built-in.o
LD lib/built-in.o
AR lib/lib.a
make: *** [arch/arm/mach-msm] Error 2[/code]

This only meant that arch/arm/mach-msm/board-bravo.h wasnt modified to include this declaration!