aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/cyber2000fb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/cyber2000fb.c b/drivers/video/cyber2000fb.c
index c1527f5b47ee..e40125cb313e 100644
--- a/drivers/video/cyber2000fb.c
+++ b/drivers/video/cyber2000fb.c
@@ -1804,8 +1804,10 @@ cyberpro_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
1804 1804
1805 cfb->irq = dev->irq; 1805 cfb->irq = dev->irq;
1806 cfb->region = pci_ioremap_bar(dev, 0); 1806 cfb->region = pci_ioremap_bar(dev, 0);
1807 if (!cfb->region) 1807 if (!cfb->region) {
1808 err = -ENOMEM;
1808 goto failed_ioremap; 1809 goto failed_ioremap;
1810 }
1809 1811
1810 cfb->regs = cfb->region + MMIO_OFFSET; 1812 cfb->regs = cfb->region + MMIO_OFFSET;
1811 cfb->fb.device = &dev->dev; 1813 cfb->fb.device = &dev->dev;