[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250702081207.bzru3mtl56ns372v@vireshk-i7>
Date: Wed, 2 Jul 2025 13:42:07 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: webgeek1234@...il.com
Cc: "Rafael J. Wysocki" <rafael@...nel.org>,
Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-tegra@...r.kernel.org
Subject: Re: [PATCH v5 3/3] cpufreq: tegra124: Allow building as a module
On 02-07-25, 02:46, Aaron Kling via B4 Relay wrote:
> +static struct platform_device *platform_device;
Maybe initialize this to an error value...
> +static void __exit tegra_cpufreq_module_exit(void)
> +{
> + if (platform_device && !IS_ERR(platform_device))
... and then this could be simplified ?
Or use !IS_ERR_OR_NULL .
--
viresh
Powered by blists - more mailing lists