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)
commit34e0247ffcae3228684668a6244a7308b78571c7
tree6fba4deafcd1be4605870531068a6fedbf3cd176
parent0b8eebc02a26500ad5084e421793eb15b41bb08e
regulator: act8865: fix build when OF is not enabled

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