summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/clock_cooling.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/clock_cooling.c')
-rw-r--r--drivers/thermal/clock_cooling.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/clock_cooling.c b/drivers/thermal/clock_cooling.c
index 1b4ff0f4c716..ed5dd0e88657 100644
--- a/drivers/thermal/clock_cooling.c
+++ b/drivers/thermal/clock_cooling.c
@@ -426,6 +426,7 @@ clock_cooling_register(struct device *dev, const char *clock_name)
if (!ccdev)
return ERR_PTR(-ENOMEM);
+ mutex_init(&ccdev->lock);
ccdev->dev = dev;
ccdev->clk = devm_clk_get(dev, clock_name);
if (IS_ERR(ccdev->clk))
OpenPOWER on IntegriCloud