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
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