PCI/portdrv: Disable port driver in compat mode
[muen/linux.git] / drivers / pci / pcie / portdrv_pci.c
index ec9e936c2a5b1a7d9d11988f89c16779431cc59e..5d9d5305ebeffe41f23356f3edd194e5682a4b60 100644 (file)
@@ -261,7 +261,7 @@ static int __init pcie_portdrv_init(void)
        int retval;
 
        if (pcie_ports_disabled)
-               return pci_register_driver(&pcie_portdriver);
+               return -EACCES;
 
        dmi_check_system(pcie_portdrv_dmi_table);