mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
arch: riscv: fix logic error in parse_dtb
The function early_init_dt_scan returns true if a DTB was detected.
Fixes: 8fd6e05c74 ("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>
This commit is contained in:
parent
fbdc6193dc
commit
f7ccc35aa3
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue