regulator: act8865: fix build when OF is not enabled
authorBeniamino Galvani <b.galvani@gmail.com>
Mon, 7 Jul 2014 21:40:47 +0000 (23:40 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 5 Aug 2014 17:02:54 +0000 (18:02 +0100)
act8846_matches and act8865_matches are defined only when OF is
enabled. Move references to them to the act8865_pdata_from_dt()
function to avoid a build error when OF is disabled.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/act8865-regulator.c

Simple merge