Re: 2.3.37 broke matroxfb

Tuomas Heino (iheino@cc.hut.fi)
Thu, 6 Jan 2000 23:38:48 +0200 (EET)


On Thu, 6 Jan 2000, Tuomas Heino wrote:

> Trying to compile 2.3.37 (w/ equal configuration to .36):
>
> matroxfb.c: In function `matrox_init':
> matroxfb.c:6023: invalid type argument of `->'
> matroxfb.c:6024: invalid type argument of `->'
> matroxfb.c:6019: warning: `svid' might be used uninitialized in this function
> matroxfb.c:6020: warning: `sid' might be used uninitialized in this function
>

Lines .36-.37 diff / lines 6023-6024:

- pci_read_config_word(pdev, PCI_SUBSYSTEM_VENDOR_ID,
&svid);
- pci_read_config_word(pdev, PCI_SUBSYSTEM_ID, &sid);
+ svid = dev->subsystem_vendor;
+ sid = dev->subsystem_device;

Is this just a case of pdev being typo'd as dev or something more complex?
I mean does the file need other changes (besides dev->pdev) to be actually usable?

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