From: Peng Fan Date: Fri, 7 Aug 2015 08:43:46 +0000 (+0800) Subject: fsl: common: pfuze: no use original pfuze code if DM_PMIC X-Git-Tag: KARO-TX6-2015-09-18~500 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=6f74ff02e8dc7582cf1fd5326cfa43151d06483a fsl: common: pfuze: no use original pfuze code if DM_PMIC If enable DM PMIC and REGULATOR, we should not use original power framework. So need to comment out the pfuze code for original power framework, when CONFIG_DM_PMIC_PFUZE100 defined. Signed-off-by: Peng Fan Cc: Przemyslaw Marczak Cc: Simon Glass Cc: Stefano Babic Reviewed-by: Simon Glass --- diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c index d6a209e1a3..783c46d882 100644 --- a/board/freescale/common/pfuze.c +++ b/board/freescale/common/pfuze.c @@ -9,6 +9,7 @@ #include #include +#ifndef CONFIG_DM_PMIC_PFUZE100 int pfuze_mode_init(struct pmic *p, u32 mode) { unsigned char offset, i, switch_num; @@ -90,3 +91,4 @@ struct pmic *pfuze_common_init(unsigned char i2cbus) return p; } +#endif