From: Andy Lutomirski Date: Mon, 13 May 2013 23:58:46 +0000 (+0000) Subject: uvesafb: Clean up MTRR code X-Git-Tag: v3.11-rc1~65^2~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63e28a7a5ffce59b645ca9cbcc01e1e8be56bd75;p=pandora-kernel.git uvesafb: Clean up MTRR code The old code allowed very strange memory types. Now it works like all the other video drivers: ioremap_wc is used unconditionally, and MTRRs are set if PAT is unavailable (unless MTRR is disabled by a module parameter). UC, WB, and WT support is gone. If there are MTRR conflicts that prevent addition of a WC MTRR, adding a non-conflicting MTRR is pointless; it's better to just turn off MTRR support entirely. As an added bonus, any MTRR added is freed on unload. Reviewed-by: Daniel Vetter Signed-off-by: Andy Lutomirski Signed-off-by: Dave Airlie --- Reading git-diff-tree failed