--- zzzz-none-000/linux-3.10.107/drivers/char/agp/parisc-agp.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/char/agp/parisc-agp.c 2021-02-04 17:41:59.000000000 +0000 @@ -335,7 +335,7 @@ struct agp_bridge_data *bridge; int error = 0; - fake_bridge_dev = alloc_pci_dev(); + fake_bridge_dev = pci_alloc_dev(NULL); if (!fake_bridge_dev) { error = -ENOMEM; goto fail;