Re: [PATCH v3] hwmon: g762: handle cleanup with devm_add_action

2018-03-01 Thread Guenter Roeck
On 03/01/2018 06:48 AM, Peng Hao wrote: Simplify code and use devm_add_action() to handle cleanup. Signed-off-by: Peng Hao Excellent. The dummy function for g762_of_clock_disable() is no longer needed, and the NULL check for ->clk in g762_of_clock_disable() is not needed anymore either. No n

[PATCH v3] hwmon: g762: handle cleanup with devm_add_action

2018-02-28 Thread Peng Hao
Simplify code and use devm_add_action() to handle cleanup. Signed-off-by: Peng Hao --- drivers/hwmon/g762.c | 58 +--- 1 file changed, 19 insertions(+), 39 deletions(-) diff --git a/drivers/hwmon/g762.c b/drivers/hwmon/g762.c index 6d1208b..0f2d46