mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 22:53:04 +00:00
display: Check if FB IOVA is available on dart-disp0
Fixes a copy and paste error in1b5dee2496
checking dart-dcp twice. Fixes:1b5dee2496
("display: Map the framebuffer if it is not mapped") Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
4e7398e3a8
commit
c8c0bd5dc5
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ static uintptr_t display_map_fb(uintptr_t iova, u64 paddr, u64 size)
|
|||
}
|
||||
|
||||
// try to map the fb to the same IOVA on disp0
|
||||
iova_disp0 = dart_find_iova(dcp->dart_dcp, iova_dcp, size);
|
||||
iova_disp0 = dart_find_iova(dcp->dart_disp, iova_dcp, size);
|
||||
if (DART_IS_ERR(iova_disp0)) {
|
||||
printf("display: failed to find IOVA for fb of %06zx bytes (disp0)\n", size);
|
||||
return iova_disp0;
|
||||
|
|
Loading…
Reference in a new issue