2012-08-18 06:47:35

by Axel Lin

[permalink] [raw]
Subject: regulator: max8907: build error when CONFIG_OF is not set

Hi Stephen,

I got below build error when CONFIG_OF is not set:

CC [M] drivers/regulator/max8907-regulator.o
drivers/regulator/max8907-regulator.c: In function 'max8907_regulator_probe':
drivers/regulator/max8907-regulator.c:297:12: error: 'max8907_matches' undeclared (first use in this function)
drivers/regulator/max8907-regulator.c:297:12: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [drivers/regulator/max8907-regulator.o] Error 1
make[1]: *** [drivers/regulator] Error 2
make: *** [drivers] Error 2

Regards,
Axel