[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ffa67377-95fe-5335-d199-6b7d4b7e5587@linaro.org>
Date: Sun, 12 Jan 2020 18:34:30 +0100
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: Yangtao Li <tiny.windzz@...il.com>, anarsoul@...il.com,
rui.zhang@...el.com, amit.kucheria@...durent.com,
mripard@...nel.org, wens@...e.org, p.zabel@...gutronix.de,
linux-pm@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] thermal: sun8i: fix using plain integer as NULL pointer
in sun8i_ths_resource_init
On 12/01/2020 18:13, Yangtao Li wrote:
> To fix:
>
> drivers/thermal/sun8i_thermal.c:341:60: sparse: sparse: Using plain
> integer as NULL pointer
>
> Reported-by: kbuild test robot <lkp@...el.com>
> Signed-off-by: Yangtao Li <tiny.windzz@...il.com>
Applied, thanks
> ---
> drivers/thermal/sun8i_thermal.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c
> index c5661d7c3e20..4bcde9491edb 100644
> --- a/drivers/thermal/sun8i_thermal.c
> +++ b/drivers/thermal/sun8i_thermal.c
> @@ -338,7 +338,7 @@ static int sun8i_ths_resource_init(struct ths_device *tmdev)
> return PTR_ERR(tmdev->regmap);
>
> if (tmdev->chip->has_bus_clk_reset) {
> - tmdev->reset = devm_reset_control_get(dev, 0);
> + tmdev->reset = devm_reset_control_get(dev, NULL);
> if (IS_ERR(tmdev->reset))
> return PTR_ERR(tmdev->reset);
>
>
--
<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
Powered by blists - more mailing lists