aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/hpt366.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/hpt366.c')
-rw-r--r--drivers/ide/pci/hpt366.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c
index 9fd50801d382..08119da06d54 100644
--- a/drivers/ide/pci/hpt366.c
+++ b/drivers/ide/pci/hpt366.c
@@ -1035,14 +1035,14 @@ static void __devinit hpt37x_clocking(ide_hwif_t *hwif)
1035 * First try reading the register in which the HighPoint BIOS 1035 * First try reading the register in which the HighPoint BIOS
1036 * saves f_CNT value before reprogramming the DPLL from its 1036 * saves f_CNT value before reprogramming the DPLL from its
1037 * default setting (which differs for the various chips). 1037 * default setting (which differs for the various chips).
1038 * NOTE: This register is only accessible via I/O space.
1039 *
1038 * In case the signature check fails, we'll have to resort to 1040 * In case the signature check fails, we'll have to resort to
1039 * reading the f_CNT register itself in hopes that nobody has 1041 * reading the f_CNT register itself in hopes that nobody has
1040 * touched the DPLL yet... 1042 * touched the DPLL yet...
1041 */ 1043 */
1042 pci_read_config_dword(dev, 0x70, &temp); 1044 temp = inl(pci_resource_start(dev, 4) + 0x90);
1043 if ((temp & 0xFFFFF000) != 0xABCDE000) { 1045 if ((temp & 0xFFFFF000) != 0xABCDE000) {
1044 int i;
1045
1046 printk(KERN_WARNING "HPT37X: no clock data saved by BIOS\n"); 1046 printk(KERN_WARNING "HPT37X: no clock data saved by BIOS\n");
1047 1047
1048 /* Calculate the average value of f_CNT */ 1048 /* Calculate the average value of f_CNT */