瀏覽代碼

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>
Dave Jiang 10 年之前
父節點
當前提交
315100004f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/ntb/ntb_transport.c

+ 1 - 1
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;
 }