From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Yangtao Li <tiny.windzz@gmail.com>,
anarsoul@gmail.com, rui.zhang@intel.com,
amit.kucheria@verdurent.com, mripard@kernel.org, wens@csie.org,
p.zabel@pengutronix.de, linux-pm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] thermal: sun8i: fix using plain integer as NULL pointer in sun8i_ths_resource_init
Date: Sun, 12 Jan 2020 18:34:30 +0100 [thread overview]
Message-ID: <ffa67377-95fe-5335-d199-6b7d4b7e5587@linaro.org> (raw)
In-Reply-To: <20200112171318.23025-1-tiny.windzz@gmail.com>
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@intel.com>
> Signed-off-by: Yangtao Li <tiny.windzz@gmail.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
prev parent reply other threads:[~2020-01-12 17:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-12 17:13 Yangtao Li
2020-01-12 17:34 ` Daniel Lezcano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ffa67377-95fe-5335-d199-6b7d4b7e5587@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=amit.kucheria@verdurent.com \
--cc=anarsoul@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mripard@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=rui.zhang@intel.com \
--cc=tiny.windzz@gmail.com \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®