patch-2.3.99-pre7 linux/drivers/video/imsttfb.c

Next file: linux/drivers/video/macmodes.c
Previous file: linux/drivers/video/fbcon.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/video/imsttfb.c linux/drivers/video/imsttfb.c
@@ -1927,9 +1927,10 @@
 	while ((pdev = pci_find_device(PCI_VENDOR_ID_IMS, PCI_ANY_ID, pdev))) {
 		if ((pdev->class >> 16) != PCI_BASE_CLASS_DISPLAY)
 			continue;
-		pci_enable_device(pdev);
+		if (pci_enable_device(pdev))
+			continue;
 
-		addr = pdev->resource[0].start;
+		addr = pci_resource_start (pdev, 0);
 		if (!addr)
 			continue;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)