This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / ide / pci / via82cxxx.c
index 9aa5633..47c241d 100644 (file)
@@ -37,8 +37,7 @@
 #include <asm/io.h>
 
 #include "ide-timing.h"
-
-#define DISPLAY_VIA_TIMINGS
+#include "via82cxxx.h"
 
 #define VIA_IDE_ENABLE         0x40
 #define VIA_IDE_CONFIG         0x41
@@ -608,19 +607,9 @@ static void __init init_hwif_via82cxxx(ide_hwif_t *hwif)
        hwif->drives[1].autodma = hwif->autodma;
 }
 
-static ide_pci_device_t via82cxxx_chipset __devinitdata = {
-       .name           = "VP_IDE",
-       .init_chipset   = init_chipset_via82cxxx,
-       .init_hwif      = init_hwif_via82cxxx,
-       .channels       = 2,
-       .autodma        = NOAUTODMA,
-       .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
-       .bootable       = ON_BOARD,
-};
-
 static int __devinit via_init_one(struct pci_dev *dev, const struct pci_device_id *id)
 {
-       ide_setup_pci_device(dev, &via82cxxx_chipset);
+       ide_setup_pci_device(dev, &via82cxxx_chipsets[id->driver_data]);
        return 0;
 }