diff options
Diffstat (limited to 'drivers/ata/pata_hpt37x.c')
-rw-r--r-- | drivers/ata/pata_hpt37x.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ata/pata_hpt37x.c b/drivers/ata/pata_hpt37x.c index 5a0a410654e2..a54c17433eef 100644 --- a/drivers/ata/pata_hpt37x.c +++ b/drivers/ata/pata_hpt37x.c | |||
@@ -961,7 +961,7 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
961 | u8 mcr1; | 961 | u8 mcr1; |
962 | u32 freq; | 962 | u32 freq; |
963 | int prefer_dpll = 1; | 963 | int prefer_dpll = 1; |
964 | 964 | ||
965 | unsigned long iobase = pci_resource_start(dev, 4); | 965 | unsigned long iobase = pci_resource_start(dev, 4); |
966 | 966 | ||
967 | const struct hpt_chip *chip_table; | 967 | const struct hpt_chip *chip_table; |
@@ -1055,7 +1055,7 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
1055 | */ | 1055 | */ |
1056 | 1056 | ||
1057 | pci_write_config_byte(dev, 0x5b, 0x23); | 1057 | pci_write_config_byte(dev, 0x5b, 0x23); |
1058 | 1058 | ||
1059 | /* | 1059 | /* |
1060 | * HighPoint does this for HPT372A. | 1060 | * HighPoint does this for HPT372A. |
1061 | * NOTE: This register is only writeable via I/O space. | 1061 | * NOTE: This register is only writeable via I/O space. |
@@ -1088,7 +1088,7 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
1088 | * Turn the frequency check into a band and then find a timing | 1088 | * Turn the frequency check into a band and then find a timing |
1089 | * table to match it. | 1089 | * table to match it. |
1090 | */ | 1090 | */ |
1091 | 1091 | ||
1092 | clock_slot = hpt37x_clock_slot(freq, chip_table->base); | 1092 | clock_slot = hpt37x_clock_slot(freq, chip_table->base); |
1093 | if (chip_table->clocks[clock_slot] == NULL || prefer_dpll) { | 1093 | if (chip_table->clocks[clock_slot] == NULL || prefer_dpll) { |
1094 | /* | 1094 | /* |
@@ -1099,11 +1099,11 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
1099 | */ | 1099 | */ |
1100 | unsigned int f_low, f_high; | 1100 | unsigned int f_low, f_high; |
1101 | int adjust; | 1101 | int adjust; |
1102 | 1102 | ||
1103 | clock_slot = 2; | 1103 | clock_slot = 2; |
1104 | if (port->udma_mask & 0xE0) | 1104 | if (port->udma_mask & 0xE0) |
1105 | clock_slot = 3; | 1105 | clock_slot = 3; |
1106 | 1106 | ||
1107 | f_low = (MHz[clock_slot] * chip_table->base) / 192; | 1107 | f_low = (MHz[clock_slot] * chip_table->base) / 192; |
1108 | f_high = f_low + 2; | 1108 | f_high = f_low + 2; |
1109 | 1109 | ||