diff options
author | Andreas Schwab <schwab@suse.de> | 2019-02-07 15:44:26 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-03-04 11:32:14 -0800 |
commit | f7ccc35aa3bd728ad8451f4d06e801cfe5c5498c (patch) | |
tree | b8c3e7d76573282ab940c288770b67e4abdd54d0 /arch/riscv/kernel | |
parent | fbdc6193dc706c863b70accf2006fa00331a7c3f (diff) |
arch: riscv: fix logic error in parse_dtb
The function early_init_dt_scan returns true if a DTB was detected.
Fixes: 8fd6e05c7463 ("arch: riscv: support kernel command line forcing when no DTB passed")
Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com>
Tested-by: Paul Walmsley <paul.walmsley@sifive.com> # FU540 HiFive-U BBL
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r-- | arch/riscv/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index 61c8161650ef..12a16df4d422 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -140,7 +140,7 @@ asmlinkage void __init setup_vm(void) void __init parse_dtb(unsigned int hartid, void *dtb) { - if (!early_init_dt_scan(__va(dtb))) + if (early_init_dt_scan(__va(dtb))) return; pr_err("No DTB passed to the kernel\n"); |