diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2018-11-30 09:00:32 +0100 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2018-12-10 20:13:09 -0800 |
commit | 7d3a2a2bbadb4bf5856ed394ba09b8fbb7a80460 (patch) | |
tree | c99a7a20d828d65cf20ce2499cde9fd5b5793221 /drivers/thermal | |
parent | 5d7ab8f0bc1410ee9d4099284ea05bf31a2e39ec (diff) | |
download | linux-7d3a2a2bbadb4bf5856ed394ba09b8fbb7a80460.tar.bz2 |
thermal/drivers/hisi: Fix number of sensors on hi3660
Without this patch the thermal driver is broken on hi3660.
The dual sensors support patchset was partially merged, unfortunately
the dual thermal zones definition is not available in the DT yet, so
when the driver tries to register all the sensors that fails.
By reducing to 1 the number of sensors on the hi3660, we switch back
to the previous functionnality.
Fixes: 8c6c36846f11 (thermal/drivers/hisi: Add the dual clusters sensors for hi3660)
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/hisi_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index 50f4d002e8ae..2d26ae80e202 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c @@ -424,7 +424,7 @@ static int hi3660_thermal_probe(struct hisi_thermal_data *data) struct platform_device *pdev = data->pdev; struct device *dev = &pdev->dev; - data->nr_sensors = 2; + data->nr_sensors = 1; data->sensor = devm_kzalloc(dev, sizeof(*data->sensor) * data->nr_sensors, GFP_KERNEL); |