diff options
author | Troy Kisky <troykiskyboundary@gmail.com> | 2023-03-13 14:31:38 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-05-10 16:45:42 -0400 |
commit | e7b03ee0fc789e8340d26be55160e12fc3614f81 (patch) | |
tree | b75eb8629bd5f3a55f9cbc8b9b0a609a7cde6722 | |
parent | e775fc676aafada90e6513c240b23cf06e11afc1 (diff) | |
download | u-boot-e7b03ee0fc789e8340d26be55160e12fc3614f81.zip u-boot-e7b03ee0fc789e8340d26be55160e12fc3614f81.tar.gz u-boot-e7b03ee0fc789e8340d26be55160e12fc3614f81.tar.bz2 |
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>
-rw-r--r-- | board/freescale/common/pfuze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c index 6dca229..a928882 100644 --- a/board/freescale/common/pfuze.c +++ b/board/freescale/common/pfuze.c @@ -91,7 +91,7 @@ struct pmic *pfuze_common_init(unsigned char i2cbus) return p; } -#else +#elif defined(CONFIG_DM_PMIC) int pfuze_mode_init(struct udevice *dev, u32 mode) { unsigned char offset, i, switch_num; |