[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250902062349.cxg5377chzqtb76r@vireshk-i7>
Date: Tue, 2 Sep 2025 11:53:49 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Zihuan Zhang <zhangzihuan@...inos.cn>
Cc: "Rafael J . wysocki" <rafael@...nel.org>,
zhenglifeng <zhenglifeng1@...wei.com>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 2/3] cpufreq: sh: drop redundant freq_table argument
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
Powered by blists - more mailing lists