Re: [PATCH] regulator: ab3100: Remove ab3100_regulators_remove function

From: Linus Walleij
Date: Fri Mar 08 2019 - 08:16:48 EST


On Thu, Mar 7, 2019 at 2:54 PM Axel Lin <axel.lin@xxxxxxxxxx> wrote:

> Current code is using devm_regulator_register() so it is not necessary
> to save reg->rdev for clean up. Remove *rdev from struct ab3100_regulator,
> then ab3100_regulators_remove() can be removed as well.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij