Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156274
b: refs/heads/master
c: 1a1dba3
h: refs/heads/master
v: v3
  • Loading branch information
Helge Deller committed Aug 2, 2009
1 parent 92f04e3 commit ff0e904
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e0deabd35f210f22c03cc734a0335c07ae71ff3
refs/heads/master: 1a1dba32412c15c51d5fc0b9efadd2ea310356d7
9 changes: 7 additions & 2 deletions trunk/drivers/video/console/sticore.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,9 +957,14 @@ static int __devinit sticore_pci_init(struct pci_dev *pd,
#ifdef CONFIG_PCI
unsigned long fb_base, rom_base;
unsigned int fb_len, rom_len;
int err;
struct sti_struct *sti;

pci_enable_device(pd);
err = pci_enable_device(pd);
if (err < 0) {
dev_err(&pd->dev, "Cannot enable PCI device\n");
return err;
}

fb_base = pci_resource_start(pd, 0);
fb_len = pci_resource_len(pd, 0);
Expand Down Expand Up @@ -1048,7 +1053,7 @@ static void __devinit sti_init_roms(void)

/* Register drivers for native & PCI cards */
register_parisc_driver(&pa_sti_driver);
pci_register_driver(&pci_sti_driver);
WARN_ON(pci_register_driver(&pci_sti_driver));

/* if we didn't find the given default sti, take the first one */
if (!default_sti)
Expand Down

0 comments on commit ff0e904

Please sign in to comment.