Fix fbdevhw initialization for PCI drivers.
graphics/fb%d, not graphics:fb%d. Thanks sysfs. Thysfs.
This commit is contained in:
parent
1c8bd318fb
commit
86678e7cc2
|
@ -310,12 +310,12 @@ fbdev_open_pci(struct pci_device * pPci, char **namep)
|
||||||
/* There are two ways to that we can determine which fb device is
|
/* There are two ways to that we can determine which fb device is
|
||||||
* associated with this PCI device. The more modern way is to look in
|
* associated with this PCI device. The more modern way is to look in
|
||||||
* the sysfs directory for the PCI device for a file named
|
* the sysfs directory for the PCI device for a file named
|
||||||
* "graphics:fb*"
|
* "graphics/fb*"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
sprintf(filename,
|
sprintf(filename,
|
||||||
"/sys/bus/pci/devices/%04x:%02x:%02x.%d/graphics:fb%d",
|
"/sys/bus/pci/devices/%04x:%02x:%02x.%d/graphics/fb%d",
|
||||||
pPci->domain, pPci->bus, pPci->dev, pPci->func, i);
|
pPci->domain, pPci->bus, pPci->dev, pPci->func, i);
|
||||||
|
|
||||||
fd = open(filename, O_RDONLY, 0);
|
fd = open(filename, O_RDONLY, 0);
|
||||||
|
|
Loading…
Reference in New Issue