]> git.baikalelectronics.ru Git - uboot.git/commit
power: regulator: rk8xx: Build get_ldo_reg only for SPL
authorWadim Egorov <w.egorov@phytec.de>
Mon, 19 Jun 2017 10:36:38 +0000 (12:36 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 11 Jul 2017 13:23:37 +0000 (15:23 +0200)
commitcc016dd09187d9c06e42bd7efadee62180141590
treec953b8a2bbb850f73bb3038e9940862e438d291b
parentd9c62cb5b81562884c2faa63294e1f967ec517c5
power: regulator: rk8xx: Build get_ldo_reg only for SPL

Enabling CONFIG_SPL_POWER_SUPPORT will cause a compiler warning:
  ‘get_ldo_reg’ defined but not used [-Wunused-function]

Let's wrap get_ldo_reg(), rk808_ldo and rk818_ldo with ENABLE_DRIVER
which is only set for non SPL builds.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/power/regulator/rk8xx.c