Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7e2f36d authored by David S. Miller's avatar David S. Miller
Browse files

ide cs5520: Initialize second port's interrupt number.



In 86ccf37c the driver was modified
to deal with the removal of the pciirq argument to ide_pci_setup_ports().

But in the conversion only the first port's IRQ gets setup.

Inspired by a patch by Bartlomiej Zolnierkiewicz., and with help from
Alan Cox.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a1317f71
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -135,6 +135,7 @@ static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_devic


	ide_pci_setup_ports(dev, d, &hw[0], &hws[0]);
	ide_pci_setup_ports(dev, d, &hw[0], &hws[0]);
	hw[0].irq = 14;
	hw[0].irq = 14;
	hw[1].irq = 15;


	return ide_host_add(d, hws, 2, NULL);
	return ide_host_add(d, hws, 2, NULL);
}
}