Skip to content

Commit

Permalink
qemu: bt device isn't always hanging off /
Browse files Browse the repository at this point in the history
Just use the normal for_each_compatible instead.

Otherwise in the qemu model as executed by op-test,
we wouldn't go down the astbmc_init() path, thus not having flash.

Cc: stable # v6.2+
Fixes: 2f0b6af
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
stewartsmith committed Jan 16, 2019
1 parent 38cf215 commit 44aa410
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions platforms/qemu/qemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ static bool qemu_probe(void)
astbmc_early_init();

/* check if the BT device was defined by QEMU */
dt_for_each_child(dt_root, n) {
if (dt_node_is_compatible(n, "bt"))
bt_device_present = true;
dt_for_each_compatible(dt_root, n, "bt") {
bt_device_present = true;
}

return true;
Expand Down

0 comments on commit 44aa410

Please sign in to comment.