aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2010-05-08 14:27:18 -0400
committerJeff Garzik <jgarzik@redhat.com>2010-05-14 17:35:52 -0400
commit276a47a93dbfe5d35261451925020f65cdbfcce8 (patch)
tree1ebb5563240ab31de67bde4f5c716cd0090490d6 /drivers/ata
parente42a542ba9cca594897176020445023c54d903d6 (diff)
pata_cmd640: don't read CFR pointlessly
cmd640_hardware_init() reads CFR but doesn't use the value read... Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_cmd640.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ata/pata_cmd640.c b/drivers/ata/pata_cmd640.c
index 45896b3c6538..7d2fac645b4c 100644
--- a/drivers/ata/pata_cmd640.c
+++ b/drivers/ata/pata_cmd640.c
@@ -181,13 +181,10 @@ static struct ata_port_operations cmd640_port_ops = {
181 181
182static void cmd640_hardware_init(struct pci_dev *pdev) 182static void cmd640_hardware_init(struct pci_dev *pdev)
183{ 183{
184 u8 r;
185 u8 ctrl; 184 u8 ctrl;
186 185
187 /* CMD640 detected, commiserations */ 186 /* CMD640 detected, commiserations */
188 pci_write_config_byte(pdev, 0x5B, 0x00); 187 pci_write_config_byte(pdev, 0x5B, 0x00);
189 /* Get version info */
190 pci_read_config_byte(pdev, CFR, &r);
191 /* PIO0 command cycles */ 188 /* PIO0 command cycles */
192 pci_write_config_byte(pdev, CMDTIM, 0); 189 pci_write_config_byte(pdev, CMDTIM, 0);
193 /* 512 byte bursts (sector) */ 190 /* 512 byte bursts (sector) */