]> git.dujemihanovic.xyz Git - u-boot.git/commit
freescale: common: pfuze: define pfuze_mode_init only if defined(CONFIG_DM_PMIC)
authorTroy Kisky <troykiskyboundary@gmail.com>
Mon, 13 Mar 2023 21:31:38 +0000 (14:31 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 10 May 2023 20:45:42 +0000 (16:45 -0400)
commite7b03ee0fc789e8340d26be55160e12fc3614f81
treeb75eb8629bd5f3a55f9cbc8b9b0a609a7cde6722
parente775fc676aafada90e6513c240b23cf06e11afc1
freescale: common: pfuze: define pfuze_mode_init only if defined(CONFIG_DM_PMIC)

pfuze_mode_init calls pmic_reg_read which is only available from

obj-$(CONFIG_$(SPL_TPL_)DM_PMIC) += pmic-uclass.o

Prepare for conversion of defined(CONFIG_DM_PMIC) to
CONFIG_IS_ENABLED(DM_PMIC).

Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/freescale/common/pfuze.c