On Thu, Sep 24, 2015 at 10:26:52PM -0500, Andreas Dannenberg wrote: [...] > - bq->charger = power_supply_register(bq->dev, &bq24257_power_supply_desc, > - &psy_cfg); > + bq->charger = devm_power_supply_register(bq->dev, > + &bq24257_power_supply_desc, > + &psy_cfg); > + > if (IS_ERR(bq->charger)) > return PTR_ERR(bq->charger); This is unrelated but, since we're here and if you ever send another version for these patches, we could change these two lines (and the 'return 0' that follows) to just: return PTR_ERR_OR_ZERO(bq->charger); laurentiu -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html