bus/fslmc: add devices in sorted order
authorShreyansh Jain <shreyansh.jain@nxp.com>
Sat, 16 Sep 2017 10:52:41 +0000 (16:22 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 01:26:58 +0000 (03:26 +0200)
commit1eb3ba846c46f4c1effc4f32f2d057a9eaffa717
tree7061010ce5a8bd43765bf98a649f9e191c2af37f
parent04dfa63404352691a0865421ae793c3463312b0b
bus/fslmc: add devices in sorted order

Before this patch, the devices discovered from VFIO layer were
being added in the device list in the order received from directory
scan. This causes an issue in case devices are reordered.

This patch makes all the devices inserted in the device list in
sorted order according to their name.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/bus/fslmc/fslmc_bus.c