diff --git a/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c b/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c index 158a20f5bbba..7f369204a700 100644 --- a/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c +++ b/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c @@ -1448,6 +1448,7 @@ static int sgm4154x_detected_qc30_hvdcp(struct sgm4154x_device *sgm, int *charge return ret; } +#ifdef CONFIG_MMI_QC3P_TURBO_CHARGER static int sgm4154x_detected_qc3p_hvdcp(struct sgm4154x_device *sgm, int *charger_type) { int ret = 0; @@ -1557,6 +1558,7 @@ static int sgm4154x_detected_qc3p_hvdcp(struct sgm4154x_device *sgm, int *charge return ret; } #endif +#endif #ifdef CONFIG_MMI_QC3P_WT6670_DETECTED bool is_chan_valid(struct sgm4154x_device *chip,