[CPUFREQ] gx-suspmod: fix "&& 0xff" typo
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
parent
caede347c3
commit
6fdc2d0750
|
@ -473,7 +473,7 @@ static int __init cpufreq_gx_init(void)
|
||||||
pci_read_config_byte(params->cs55x0, PCI_MODON, &(params->on_duration));
|
pci_read_config_byte(params->cs55x0, PCI_MODON, &(params->on_duration));
|
||||||
pci_read_config_byte(params->cs55x0, PCI_MODOFF, &(params->off_duration));
|
pci_read_config_byte(params->cs55x0, PCI_MODOFF, &(params->off_duration));
|
||||||
pci_read_config_dword(params->cs55x0, PCI_CLASS_REVISION, &class_rev);
|
pci_read_config_dword(params->cs55x0, PCI_CLASS_REVISION, &class_rev);
|
||||||
params->pci_rev = class_rev && 0xff;
|
params->pci_rev = class_rev & 0xff;
|
||||||
|
|
||||||
if ((ret = cpufreq_register_driver(&gx_suspmod_driver))) {
|
if ((ret = cpufreq_register_driver(&gx_suspmod_driver))) {
|
||||||
kfree(params);
|
kfree(params);
|
||||||
|
|
Loading…
Reference in New Issue