diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-11-09 12:29:35 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-12-12 17:20:49 -0500 |
commit | 55e337345df892d592bbd9050cbd1fc0c6feb069 (patch) | |
tree | 289b85d26c37cf4ae980c24e84a736679f31d6f1 /arch/i386 | |
parent | 474a14df3fce60bebde64d25c6adbdab7d30594a (diff) |
[CPUFREQ] Optimize gx-suspmod revision ID fetching
We don't need a temporary variable to get the PCI revision ID.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/gx-suspmod.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c index 0b9cc8aea954..6667e9cceb9f 100644 --- a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c +++ b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c | |||
@@ -447,7 +447,6 @@ static int __init cpufreq_gx_init(void) | |||
447 | int ret; | 447 | int ret; |
448 | struct gxfreq_params *params; | 448 | struct gxfreq_params *params; |
449 | struct pci_dev *gx_pci; | 449 | struct pci_dev *gx_pci; |
450 | u32 class_rev; | ||
451 | 450 | ||
452 | /* Test if we have the right hardware */ | 451 | /* Test if we have the right hardware */ |
453 | if ((gx_pci = gx_detect_chipset()) == NULL) | 452 | if ((gx_pci = gx_detect_chipset()) == NULL) |
@@ -472,8 +471,7 @@ static int __init cpufreq_gx_init(void) | |||
472 | pci_read_config_byte(params->cs55x0, PCI_PMER2, &(params->pci_pmer2)); | 471 | pci_read_config_byte(params->cs55x0, PCI_PMER2, &(params->pci_pmer2)); |
473 | pci_read_config_byte(params->cs55x0, PCI_MODON, &(params->on_duration)); | 472 | pci_read_config_byte(params->cs55x0, PCI_MODON, &(params->on_duration)); |
474 | pci_read_config_byte(params->cs55x0, PCI_MODOFF, &(params->off_duration)); | 473 | pci_read_config_byte(params->cs55x0, PCI_MODOFF, &(params->off_duration)); |
475 | pci_read_config_dword(params->cs55x0, PCI_CLASS_REVISION, &class_rev); | 474 | pci_read_config_byte(params->cs55x0, PCI_REVISION_ID, ¶ms->pci_rev); |
476 | params->pci_rev = class_rev & 0xff; | ||
477 | 475 | ||
478 | if ((ret = cpufreq_register_driver(&gx_suspmod_driver))) { | 476 | if ((ret = cpufreq_register_driver(&gx_suspmod_driver))) { |
479 | kfree(params); | 477 | kfree(params); |