cpufreq: sparc: Don't allocate cpufreq_driver dynamically
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 12 Apr 2023 03:17:56 +0000 (08:47 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 11 May 2023 10:22:51 +0000 (15:52 +0530)
commitdcfce7c2cee481853e7717890e1e2d6daba354c4
treed67acfc7049198376bece5d2a32d222421fdb4cf
parent9ab24b0486681ecc059ee766e00d9570c6311e08
cpufreq: sparc: Don't allocate cpufreq_driver dynamically

There is no point allocating the cpufreq driver dynamically and add so
much complexity in the driver.

Do what is done for other cpufreq drivers and statically allocate the
cpufreq driver.

Reported-by: Markus Elfring <Markus.Elfring@web.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
drivers/cpufreq/sparc-us2e-cpufreq.c
drivers/cpufreq/sparc-us3-cpufreq.c