Re: Boot problem, 2.4.19-rc3-ac1

From: Zwane Mwaikambo (zwane@linuxpower.ca)
Date: Wed Jul 24 2002 - 09:57:08 EST


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/



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:16 EST