Commit 11a3ee04 authored by Daniel Lezcano's avatar Daniel Lezcano Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: powercap/drivers/dtpm: Fix root node initialization



The root node is not set to NULL when the dtpm root node is
removed. Consequently, it is not possible to create a new root
as it is already set.

Set the root node to NULL when the last node is removed.

Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>

Link: https://patchwork.kernel.org/project/linux-pm/patch/20210224183022.11846-1-daniel.lezcano@linaro.org/


Bug: 183374898
Change-Id: Idf56d61c16c451b9597d77c8e27372fbaede0ca3
(cherry picked from commit f3c14105)
Signed-off-by: default avatarRam Chandrasekar <quic_rkumbako@quicinc.com>
parent 2d118bc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment