Re: [PATCH v2] cpufreq: sparc: Fix exception handling in two functions
From: Viresh Kumar
Date: Sun Apr 09 2023 - 19:55:30 EST
On 07-04-23, 19:48, Markus Elfring wrote:
> @@ -337,21 +337,17 @@ static int __init us2e_freq_init(void)
> driver->get = us2e_freq_get;
> driver->exit = us2e_freq_cpu_exit;
> strcpy(driver->name, "UltraSPARC-IIe");
> -
> - cpufreq_us2e_driver = driver;
This changes the behavior of the code here as "cpufreq_us2e_driver"
is used in us2e_freq_cpu_exit(). If some failure occurs after a
policy is initialized, and driver doesn't register successfully, then
we won't set the frequency to the lowest index of the table anymore.
Same with other file.
--
viresh