X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=arch%2Fx86%2Fpci%2Fvisws.c;h=42f4cb19facab8a47b70c85fcfd819cb086ade3b;hp=343ccf668d1457ac473e47eecc5564b3f9c9a5f6;hb=1481b9109fe771ec8b035d7760f42e36d2bed5d4;hpb=22d5c67c5b0476e463ce4b632ba9ec3953d33a5f diff --git a/arch/x86/pci/visws.c b/arch/x86/pci/visws.c index 343ccf668d14..42f4cb19faca 100644 --- a/arch/x86/pci/visws.c +++ b/arch/x86/pci/visws.c @@ -8,8 +8,9 @@ #include #include -#include "cobalt.h" -#include "lithium.h" +#include +#include +#include #include "pci.h" @@ -85,8 +86,14 @@ void __init pcibios_update_irq(struct pci_dev *dev, int irq) pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); } -static int __init pci_visws_init(void) +int __init pci_visws_init(void) { + if (!is_visws_box()) + return -1; + + pcibios_enable_irq = &pci_visws_enable_irq; + pcibios_disable_irq = &pci_visws_disable_irq; + /* The VISWS supports configuration access type 1 only */ pci_probe = (pci_probe | PCI_PROBE_CONF1) & ~(PCI_PROBE_BIOS | PCI_PROBE_CONF2); @@ -104,10 +111,3 @@ static int __init pci_visws_init(void) pcibios_resource_survey(); return 0; } - -static __init int pci_subsys_init(void) -{ - pci_visws_init(); - pcibios_init(); -} -subsys_initcall(pci_subsys_init);