Skip to content
Commit 8926c2f5 authored by Wadim Egorov's avatar Wadim Egorov Committed by Philipp Tomsich
Browse files

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: default avatarWadim Egorov <w.egorov@phytec.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
parent f6f47c2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment