[U-Boot] [PATCH v3 1/4] power: regulator: rk8xx: Build get_ldo_reg only for SPL

Simon Glass sjg at chromium.org
Mon Jun 12 23:51:14 UTC 2017


On 12 June 2017 at 03:58, Wadim Egorov <w.egorov at phytec.de> wrote:
> 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>
> ---
>  drivers/power/regulator/rk8xx.c | 40 +++++++++++++++++++++-------------------
>  1 file changed, 21 insertions(+), 19 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list