Commit 35fa2b4b authored by René Rebe's avatar René Rebe Committed by Helge Deller
Browse files

fbdev: tcx.c fix mem_map to correct smem_start offset



403ae52a ("sparc: fix drivers/video/tcx.c warning") changed the
physbase initializing breaking the user-space mmap, e.g. for Xorg
entirely.

Fix fbdev mmap table so the sbus mmap helper work correctly, and
not try to map vastly (physbase) offset memory.

Fixes: 403ae52a ("sparc: fix drivers/video/tcx.c warning")
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarRené Rebe <rene@exactco.de>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 7ecb5c36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -428,7 +428,7 @@ static int tcx_probe(struct platform_device *op)
			j = i;
			break;
		}
		par->mmap_map[i].poff = op->resource[j].start;
		par->mmap_map[i].poff = op->resource[j].start - info->fix.smem_start;
	}

	info->fbops = &tcx_ops;