Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31510000 authored by Dave Jiang's avatar Dave Jiang Committed by Jon Mason
Browse files

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: default avatarDave Jiang <dave.jiang@intel.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 0a5d19d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}