diff options
Diffstat (limited to 'drivers/ata/pata_legacy.c')
-rw-r--r-- | drivers/ata/pata_legacy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c index 4fe9d2138d48..be816428b430 100644 --- a/drivers/ata/pata_legacy.c +++ b/drivers/ata/pata_legacy.c | |||
@@ -542,7 +542,7 @@ static void opti82c46x_set_piomode(struct ata_port *ap, struct ata_device *adev) | |||
542 | u8 sysclk; | 542 | u8 sysclk; |
543 | 543 | ||
544 | /* Get the clock */ | 544 | /* Get the clock */ |
545 | sysclk = opti_syscfg(0xAC) & 0xC0; /* BIOS set */ | 545 | sysclk = (opti_syscfg(0xAC) & 0xC0) >> 6; /* BIOS set */ |
546 | 546 | ||
547 | /* Enter configuration mode */ | 547 | /* Enter configuration mode */ |
548 | ioread16(ap->ioaddr.error_addr); | 548 | ioread16(ap->ioaddr.error_addr); |