diff options
Diffstat (limited to 'drivers/ide/pci/cmd64x.c')
-rw-r--r-- | drivers/ide/pci/cmd64x.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/pci/cmd64x.c b/drivers/ide/pci/cmd64x.c index adee2ef6fd71..69cdbfb86bbf 100644 --- a/drivers/ide/pci/cmd64x.c +++ b/drivers/ide/pci/cmd64x.c | |||
@@ -506,6 +506,9 @@ static void __devinit init_hwif_cmd64x(ide_hwif_t *hwif) | |||
506 | hwif->set_pio_mode = &cmd64x_set_pio_mode; | 506 | hwif->set_pio_mode = &cmd64x_set_pio_mode; |
507 | hwif->set_dma_mode = &cmd64x_set_dma_mode; | 507 | hwif->set_dma_mode = &cmd64x_set_dma_mode; |
508 | 508 | ||
509 | if (dev->device == PCI_DEVICE_ID_CMD_646) | ||
510 | hwif->chipset = ide_cmd646; | ||
511 | |||
509 | if (!hwif->dma_base) | 512 | if (!hwif->dma_base) |
510 | return; | 513 | return; |
511 | 514 | ||
@@ -535,7 +538,6 @@ static void __devinit init_hwif_cmd64x(ide_hwif_t *hwif) | |||
535 | hwif->ide_dma_test_irq = &cmd648_ide_dma_test_irq; | 538 | hwif->ide_dma_test_irq = &cmd648_ide_dma_test_irq; |
536 | break; | 539 | break; |
537 | case PCI_DEVICE_ID_CMD_646: | 540 | case PCI_DEVICE_ID_CMD_646: |
538 | hwif->chipset = ide_cmd646; | ||
539 | if (dev->revision == 0x01) { | 541 | if (dev->revision == 0x01) { |
540 | hwif->ide_dma_end = &cmd646_1_ide_dma_end; | 542 | hwif->ide_dma_end = &cmd646_1_ide_dma_end; |
541 | break; | 543 | break; |