vserver 1.9.5.x5
[linux-2.6.git] / arch / ppc / platforms / mcpn765.c
index 06ed938..83dcc8f 100644 (file)
@@ -58,8 +58,6 @@
 #include <asm/kgdb.h>
 
 #include "mcpn765.h"
-#include "mcpn765_serial.h"
-
 
 static u_char mcpn765_openpic_initsenses[] __initdata = {
        (IRQ_SENSE_EDGE  | IRQ_POLARITY_POSITIVE),/* 16: i8259 cascade */
@@ -187,7 +185,7 @@ mcpn765_setup_via_82c586b(void)
        struct pci_dev  *dev;
        u_char          c;
 
-       if ((dev = pci_find_device(PCI_VENDOR_ID_VIA,
+       if ((dev = pci_get_device(PCI_VENDOR_ID_VIA,
                                   PCI_DEVICE_ID_VIA_82C586_0,
                                   NULL)) == NULL) {
                printk("No VIA ISA bridge found\n");
@@ -211,8 +209,8 @@ mcpn765_setup_via_82c586b(void)
        pci_write_config_dword(dev, 0x54, 0);
        pci_write_config_byte(dev, 0x58, 0);
 
-
-       if ((dev = pci_find_device(PCI_VENDOR_ID_VIA,
+       pci_dev_put(dev);
+       if ((dev = pci_get_device(PCI_VENDOR_ID_VIA,
                                   PCI_DEVICE_ID_VIA_82C586_1,
                                   NULL)) == NULL) {
                printk("No VIA ISA bridge found\n");
@@ -227,6 +225,7 @@ mcpn765_setup_via_82c586b(void)
        pci_read_config_byte(dev, 0x40, &c);
        c |= 0x03;
        pci_write_config_byte(dev, 0x40, c);
+       pci_dev_put(dev);
 
        return;
 }
@@ -324,10 +323,6 @@ mcpn765_setup_arch(void)
                ROOT_DEV = Root_SDA2;
 #endif
 
-#ifdef CONFIG_DUMMY_CONSOLE
-       conswitchp = &dummy_con;
-#endif
-
        if ( ppc_md.progress )
                ppc_md.progress("mcpn765_setup_arch: find_bridges", 0);