-static void __init init_second_ohare(void)
-{
- struct device_node *np = of_find_node_by_name(NULL, "pci106b,7");
- unsigned char bus, devfn;
- unsigned short cmd;
-
- if (np == NULL)
- return;
-
- /* This must run before we initialize the PICs since the second
- * ohare hosts a PIC that will be accessed there.
- */
- if (pci_device_from_OF_node(np, &bus, &devfn) == 0) {
- struct pci_controller* hose =
- pci_find_hose_for_OF_device(np);
- if (!hose) {
- printk(KERN_ERR "Can't find PCI hose for OHare2 !\n");
- return;
- }
- early_read_config_word(hose, bus, devfn, PCI_COMMAND, &cmd);
- cmd |= PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER;
- cmd &= ~PCI_COMMAND_IO;
- early_write_config_word(hose, bus, devfn, PCI_COMMAND, cmd);
- }
- has_second_ohare = 1;
-}
-