display: Check if FB IOVA is available on dart-disp0

Fixes a copy and paste error in 1b5dee2496 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:
Janne Grunau 2023-01-26 11:49:47 +01:00 committed by Hector Martin
parent 4e7398e3a8
commit c8c0bd5dc5

View file

@ -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;