On 4 September 2013 20:02, Marek Vasut <ma...@denx.de> wrote: > Dear Sachin Kamat, > >> devm_* simplifies the code. >> >> Signed-off-by: Sachin Kamat <sachin.ka...@linaro.org> >> --- >> drivers/regulator/palmas-regulator.c | 38 >> @@ -1021,7 +1021,7 @@ static int palmas_regulators_probe(struct >> platform_device *pdev) id, reg_init); >> if (ret) { >> regulator_unregister(pmic->rdev[id]); >> - goto err_unregister_regulator; >> + return ret; >> } > > what about this regulator_unregister() above here?
It should have gone too. I will send a fix for that. Thanks for noticing. -- With warm regards, Sachin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/