--- zzzz-none-000/linux-3.10.107/arch/mips/pci/pci-bcm1480.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/mips/pci/pci-bcm1480.c 2021-02-04 17:41:59.000000000 +0000 @@ -39,6 +39,7 @@ #include #include #include +#include #include #include @@ -172,8 +173,8 @@ } struct pci_ops bcm1480_pci_ops = { - bcm1480_pcibios_read, - bcm1480_pcibios_write, + .read = bcm1480_pcibios_read, + .write = bcm1480_pcibios_write, }; static struct resource bcm1480_mem_resource = { @@ -257,7 +258,9 @@ register_pci_controller(&bcm1480_controller); #ifdef CONFIG_VGA_CONSOLE - take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); + console_lock(); + do_take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); + console_unlock(); #endif return 0; }