From: Philipp Tomsich Date: Mon, 26 Jun 2017 01:24:00 +0200 Subject: [U-Boot] [U-Boot, v4, 1/4] power: regulator: rk8xx: Build get_ldo_reg only for SPL In-Reply-To: <1497868601-30227-1-git-send-email-w.egorov@phytec.de> References: <1497868601-30227-1-git-send-email-w.egorov@phytec.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de > 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 > Reviewed-by: Simon Glass > --- > Changes in v4: > - Added Reviewed-by: Simon Glass > > drivers/power/regulator/rk8xx.c | 40 +++++++++++++++++++++------------------- > 1 file changed, 21 insertions(+), 19 deletions(-) > Acked-by: Philipp Tomsich