[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <19a73d97-3679-0c1d-eefc-a944971effac@gmail.com>
Date: Mon, 10 May 2021 15:26:06 +0300
From: Dmitry Osipenko <digetx@...il.com>
To: Dan Carpenter <dan.carpenter@...cle.com>,
Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
Cc: linuxarm@...wei.com, mauro.chehab@...wei.com,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jonathan Hunter <jonathanh@...dia.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Thierry Reding <thierry.reding@...il.com>,
linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-tegra@...r.kernel.org
Subject: Re: [PATCH v5 05/25] staging: media: tegra-vde: use
pm_runtime_resume_and_get()
07.05.2021 08:13, Dan Carpenter пишет:
> On Thu, May 06, 2021 at 05:25:43PM +0200, Mauro Carvalho Chehab wrote:
>> @@ -1069,11 +1071,19 @@ static int tegra_vde_probe(struct platform_device *pdev)
>> * power-cycle it in order to put hardware into a predictable lower
>> * power state.
>> */
>> - pm_runtime_get_sync(dev);
>> + if (pm_runtime_resume_and_get(dev) < 0)
>> + goto err_pm_runtime;
>
> Needs an error code on this path. These days the kbuild bot will send
> a warning for this eventually.
Good catch, thank you.
Powered by blists - more mailing lists