STI without PCI
Right now, it's not possible to compile STI in without PCI. This patch should fix that. Feedback appreciated.
Index: drivers/video/sti/sticore.c
===================================================================
RCS file: /var/cvs/linux/drivers/video/sti/sticore.c,v retrieving revision 1.37
video/sti/sticore.c +2 -3
@@ -918,10 +918,10 @@ static int __init sticore_pa_init(structreturn 0 ; } -static int __devinit sticore_pci_init (struct pci_dev *pd,const struct pci_device_id *ent) { +#ifdef CONFIG_PCI unsigned long fb_base, rom_base;unsigned int fb_len, rom_len;struct sti_struct *sti;
@@ -962,10 +962,9 @@ static int __devinit sticore_pci_init(st pd->name);return -ENODEV ; } - +#endif /* CONFIG_PCI */ return 0 ; } - static void __devexit sticore_pci_remove(struct pci_dev *pd) {
Signature · 1 line
Revolutions do not require corporate support.