diff mbox

Prevent AER driver from being loaded on PCIE devices which are not root ports.

Message ID 4ACC1CC0.3020900@jp.fujitsu.com
State Accepted, archived
Headers show

Commit Message

Kenji Kaneshige Oct. 7, 2009, 4:44 a.m. UTC
None
diff mbox

Patch

Index: 20091005/drivers/pci/pcie/aer/aerdrv.c
===================================================================
--- 20091005.orig/drivers/pci/pcie/aer/aerdrv.c
+++ 20091005/drivers/pci/pcie/aer/aerdrv.c
@@ -52,7 +52,7 @@  static struct pci_error_handlers aer_err
 
 static struct pcie_port_service_driver aerdriver = {
 	.name		= "aer",
-	.port_type	= PCIE_ANY_PORT,
+	.port_type	= PCIE_RC_PORT,
 	.service	= PCIE_PORT_SERVICE_AER,
 
 	.probe		= aer_probe,