summaryrefslogtreecommitdiffstats
path: root/drivers/ntb
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2015-07-13 14:07:19 +0200
committerJon Mason <jdmason@kudzu.us>2015-09-07 21:17:08 +0200
commit315100004fd6d9189b033f3bf9c5eba9eb906705 (patch)
tree822642b3fad968b2a8e9dfd399d36c2509580543 /drivers/ntb
parentNTB: Add PCI Device IDs for Broadwell Xeon (diff)
downloadlinux-315100004fd6d9189b033f3bf9c5eba9eb906705.tar.xz
linux-315100004fd6d9189b033f3bf9c5eba9eb906705.zip
NTB: Make the transport list in order of discovery
The list should be added from the bottom and not the top in order to ensure the transport is provided in the same order to clients as ntb devices are discovered. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb')
-rw-r--r--drivers/ntb/ntb_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index 0d851d684523..29553fb7fb8e 100644
--- a/drivers/ntb/ntb_transport.c
+++ b/drivers/ntb/ntb_transport.c
@@ -297,7 +297,7 @@ static LIST_HEAD(ntb_transport_list);
static int ntb_bus_init(struct ntb_transport_ctx *nt)
{
- list_add(&nt->entry, &ntb_transport_list);
+ list_add_tail(&nt->entry, &ntb_transport_list);
return 0;
}