regulator: act8865: Fix build error when !OF
authorAxel Lin <axel.lin@ingics.com>
Mon, 6 Jan 2014 07:42:53 +0000 (15:42 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 6 Jan 2014 12:12:07 +0000 (12:12 +0000)
commita8659ba461a13ef1a8a28968b3bd10220684be02
tree5d8b4c3a3a91bd0ed1ae9d6dae77a51ee6c8dede
parentd04b755273683ed31043563b8a3a2716bd8aa6a9
regulator: act8865: Fix build error when !OF

Fix below build error when !OF:
  CC [M]  drivers/regulator/act8865-regulator.o
drivers/regulator/act8865-regulator.c: In function 'act8865_pmic_probe':
drivers/regulator/act8865-regulator.c:306:18: error: 'act8865_matches' undeclared (first use in this function)
drivers/regulator/act8865-regulator.c:306:18: note: each undeclared identifier is reported only once for each function it appears in
drivers/regulator/act8865-regulator.c:306:18: error: negative width in bit-field '<anonymous>'
make[2]: *** [drivers/regulator/act8865-regulator.o] Error 1
make[1]: *** [drivers/regulator] Error 2
make: *** [drivers] Error 2

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/act8865-regulator.c