Re: Boot problem, 2.4.19-rc3-ac1

Zwane Mwaikambo (zwane@linuxpower.ca)
Wed, 24 Jul 2002 16:57:08 +0200 (SAST)


On 24 Jul 2002, Ian Soboroff wrote:

> static int trident_suspend(struct pci_dev *dev, u32 unused)
> {
> - struct trident_card *card = (struct trident_card *) dev;
> + struct trident_card *card = pci_get_drvdata(dev);
>
> if(card->pci_id == PCI_DEVICE_ID_ALI_5451) {
> ali_save_regs(card);
> @@ -3466,7 +3466,7 @@
>
> static int trident_resume(struct pci_dev *dev)
> {
> - struct trident_card *card = (struct trident_card *) dev;
> + struct trident_card *card = pci_get_drvdata(dev);
>
> if(card->pci_id == PCI_DEVICE_ID_ALI_5451) {
> ali_restore_regs(card);

Thats definitely correct, has this patch been sent to lkml before?

Cheers,
Zwane

-- 
function.linuxpower.ca

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/