summaryrefslogtreecommitdiffstats
path: root/drivers/video/imsttfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/imsttfb.c')
-rw-r--r--drivers/video/imsttfb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/imsttfb.c b/drivers/video/imsttfb.c
index d03d4660a..987f167d9 100644
--- a/drivers/video/imsttfb.c
+++ b/drivers/video/imsttfb.c
@@ -1927,9 +1927,10 @@ imsttfb_init(void)
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;