Re: [PATCH v5 3/3] cpufreq: tegra124: Allow building as a module
From: Viresh Kumar
Date: Wed Jul 02 2025 - 04:12:28 EST
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