/* The 5510/5520 are a bit weird. They don't quite set up the way the PCI helper layer expects so we must do much of the set up work longhand.  */
static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_device_id *id)
/* The 5510/5520 are a bit weird. They don't quite set up the way the PCI helper layer expects so we must do much of the set up work longhand.  */
static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
	const struct ide_port_info *d = &cyrix_chipset;
	struct ide_hw hw[2], *hws[] = { NULL, NULL };
	ide_setup_pci_noise(dev, d);
	if (pci_enable_device_io(dev)) {
		printk(KERN_WARNING "%s: Unable to enable 55x0.\n", d->name);
		return -ENODEV;
	}
	pci_set_master(dev);
	if (pci_set_dma_mask(dev, DMA_BIT_MASK(32))) {
		printk(KERN_WARNING "%s: No suitable DMA available.\n",
			d->name);
		return -ENODEV;
	}
	ide_pci_setup_ports(dev, d, &hw[0], &hws[0]);
	hw[0].irq = 14;
	hw[1].irq = 15;
	return ide_host_add(d, hws, 2, NULL);
}