intel_idle: Remove unused driver version constant
Artem Bityutskiy
maintainerPATCH RESEND 1/1 intel_idle: Remove unused driver version constant
From: Artem Bityutskiy <[email protected]>
The INTEL_IDLE_VERSION constant has not been updated since 2020 and serves no useful purpose. The driver version is implicitly defined by the kernel version, making this constant redundant.
Remove the constant to eliminate potential confusion about version tracking.
--- drivers/idle/intel_idle.c | 5 ----- 1 file changed, 5 deletions(-)
Re-sending, for some reason the first submission did not arrive to the linux-pm mailing list, I cannot find it in the archives.
drivers/idle/intel_idle.c +0 -5
@@ -63,8 +63,6 @@#include <asm/fpu/api.h> #include <asm/smp.h> -#define INTEL_IDLE_VERSION "0.5.1" -static struct cpuidle_driver intel_idle_driver = { .name ="intel_idle" , .owner =THIS_MODULE ,
@@ -2478,9 +2476,6 @@ static int __init intel_idle_init(void)return -ENODEV ; } -pr_debug ("v" INTEL_IDLE_VERSION " model 0x%X\n" , - boot_cpu_data.x86_model); - intel_idle_cpuidle_devices = alloc_percpu(struct cpuidle_device);if (!intel_idle_cpuidle_devices)return -ENOMEM ;
Signature · 1 line
2.52.0
Quoted 33 lines · Artem Bityutskiy
From: Artem Bityutskiy <[email protected]>
The
INTEL_IDLE_VERSIONconstant has not been updated since 2020 and serves no useful purpose. The driver version is implicitly defined by the kernel version, making this constant redundant.Remove the constant to eliminate potential confusion about version tracking.
Signed-off-by Artem Bityutskiy <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>--- drivers/idle/intel_idle.c | 5 ----- 1 file changed, 5 deletions(-)Re-sending, for some reason the first submission did not arrive to the linux-pm mailing list, I cannot find it in the archives.
drivers/idle/intel_idle.c +0
-2@@ -63,8 +63,6 @@#include <asm/fpu/api.h> #include <asm/smp.h> -#define INTEL_IDLE_VERSION "0.5.1" -static struct cpuidle_driver intel_idle_driver = { .name ="intel_idle" , .owner =THIS_MODULE ,
drivers/idle/intel_idle.c static int __init intel_idle_init(void)
Quoted 10 lines
drivers/idle/intel_idle.c +0
-4@@ -2478,9 +2476,6 @@ static int __init intel_idle_init(void)return -ENODEV ; } -pr_debug ("v" INTEL_IDLE_VERSION " model 0x%X\n" , - boot_cpu_data.x86_model); - intel_idle_cpuidle_devices = alloc_percpu(struct cpuidle_device);if (!intel_idle_cpuidle_devices)return -ENOMEM ; --
Applied as 6.20 material, thanks!