]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: max8907: fix compile error when !CONFIG_OF
authorStephen Warren <swarren@nvidia.com>
Mon, 20 Aug 2012 15:39:10 +0000 (09:39 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 20 Aug 2012 19:58:38 +0000 (20:58 +0100)
commit341aa736845ab2eb195f3e8a0cf4ad0ecd4f0b04
tree906908ead61bfde51d61e48ffad3cda82e3d6d93
parent3990932cca373af6e2867098f8021d80eaf670e4
regulator: max8907: fix compile error when !CONFIG_OF

Fix the following:

  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)

by removing direct references to max8907_matches[], which only exists when
CONFIG_OF is defined.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8907-regulator.c