On 29/10/2018 10:31, andy.t...@nxp.com wrote:
> From: Yuantian Tang <andy.t...@nxp.com>
> 
> 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.t...@nxp.com>
> ---

With the fix below:

Reviewed-by: Daniel Lezcano <daniel.lezc...@linaro.org>

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

Reply via email to