]> Pileus Git - ~andy/linux/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>
Tue, 28 Aug 2012 18:00:29 +0000 (11:00 -0700)
commitdb55168265699c72e6ebf7a4228029da590a3eab
treecd3d9957c99cb972d94d2e545b4cd2a686c12b57
parent0764ef59161a4026c44ca184b7812383feabb769
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