trats2: fix unused variable warnings made from interactive charger
[platform/kernel/u-boot.git] / board / samsung / trats2 / trats2.c
index 7a621b6..807dd56 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */
 /* For global battery and charger functions */
 static struct power_battery *pbat;
 static struct pmic *p_chrg, *p_muic, *p_fg, *p_bat;
 static int power_init_done;
+#endif
 
 static unsigned int board_rev = -1;
 static inline u32 get_model_rev(void);