Re: [PATCH v2] thermal: qoriq: add multiple sensors support

From: Daniel Lezcano
Date: Mon Oct 29 2018 - 06:24:12 EST


On 29/10/2018 10:31, andy.tang@xxxxxxx wrote:
> From: Yuantian Tang <andy.tang@xxxxxxx>
>
> The QorIQ Layerscape SoC has several thermal sensors but the current
> driver only supports one.
>
> Massage the code to be sensor oriented and allow the support for
> multiple sensors.
>
> Signed-off-by: Yuantian Tang <andy.tang@xxxxxxx>
> ---

With the fix below:

Reviewed-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>

Thanks!

[ ... ]

> + ret = qoriq_tmu_register_tmu_zone(pdev);
> + if (ret < 0) {
> + dev_err(&pdev->dev, "Failed to register sensors\n");
> + ret = -ENODEV;
> + goto err_iomap;
>

if (ret) {
dev_err(&pdev->dev, "Failed to register sensors\n");
goto err_iomap;
}


--
<http://www.linaro.org/> Linaro.org â Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog