* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / kernel / linux / hotfix-fbdev-suntcx.patch
blob1145ce809a7dc931b3b41cd39e8670f57814fee4
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/hotfix-fbdev-suntcx.patch
3 # Copyright (C) 2022 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Fix sun tcx fbdev mmap table so the sbus mmap helper actually works at all,
15 and not "random", map physbas offset memory, broken since
16 403ae52ac047eb339f2b7e8cdf93a3b8077914db
17 Author: Robert Reif <reif@earthlink.net>
18 Date: Sat Apr 26 22:29:43 2008 -0700
20 sparc: fix drivers/video/tcx.c warning
22 Fix compile warning:
24 Signed-off-by: René Rebe <rene@exactcode.de>
26 --- ./drivers/video/fbdev/tcx.c.vanilla 2022-07-16 22:04:34.068678650 +0200
27 +++ ./drivers/video/fbdev/tcx.c 2022-07-16 22:04:55.826677782 +0200
28 @@ -436,7 +436,7 @@
29 j = i;
30 break;
32 - par->mmap_map[i].poff = op->resource[j].start;
33 + par->mmap_map[i].poff = op->resource[j].start - info->fix.smem_start; // op->resource[0].start;
36 info->flags = FBINFO_DEFAULT;