From: Michal Januszewski The VGA registers are only available at their legacy IO locations on x86. Don't try to access them when running on other arches. Note that the code accessing them directly is just an optimization (limits slow BIOS function calls). We don't lose any functionality by using BIOS calls instead of it on non-x86. Signed-off-by: Michal Januszewski Cc: Paul Mundt Cc: Paulo Marques Cc: "H. Peter Anvin" Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton --- drivers/video/uvesafb.c | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff -puN drivers/video/uvesafb.c~uvesafb-the-driver-core-dont-access-vga-registers-directly-when-running-on-non-x86 drivers/video/uvesafb.c --- a/drivers/video/uvesafb.c~uvesafb-the-driver-core-dont-access-vga-registers-directly-when-running-on-non-x86 +++ a/drivers/video/uvesafb.c @@ -19,8 +19,10 @@ #include #include #include