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);