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

2019-03-08 Thread Linus Walleij
On Thu, Mar 7, 2019 at 2:54 PM Axel Lin 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

[PATCH] regulator: ab3100: Remove ab3100_regulators_remove function

2019-03-07 Thread Axel Lin
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 --- drivers/regulator/ab3100.c | 24 ++-- 1 file