[U-Boot] [U-Boot, v4, 1/4] power: regulator: rk8xx: Build get_ldo_reg only for SPL
Philipp Tomsich
philipp.tomsich at theobroma-systems.com
Sun Jun 25 23:24:00 UTC 2017
> 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 at phytec.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
> Changes in v4:
> - Added Reviewed-by: Simon Glass <sjg at chromium.org>
>
> drivers/power/regulator/rk8xx.c | 40 +++++++++++++++++++++-------------------
> 1 file changed, 21 insertions(+), 19 deletions(-)
>
Acked-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
More information about the U-Boot
mailing list