Re: [PATCH v1 2/3] cpufreq: sh: drop redundant freq_table argument
From: Viresh Kumar
Date: Tue Sep 02 2025 - 02:24:02 EST
On 02-09-25, 14:06, Zihuan Zhang wrote:
> I also noticed that in some drivers like acpi-cpufreq.c, if freq_table
> allocation fails, the driver won’t be registered at all.
>
> In such cases,
>
> should the NULL check be done inside the core helper functions, or should it
> be left to the drivers?
Not all drivers need a freq-table and so it is fine for them to not
have one. This driver looks like can work without a freq table too.
--
viresh