Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755839AbXILTwy (ORCPT ); Wed, 12 Sep 2007 15:52:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752373AbXILTwr (ORCPT ); Wed, 12 Sep 2007 15:52:47 -0400 Received: from 21.16.78.83.cust.bluewin.ch ([83.78.16.21]:52529 "EHLO spock.one.pl" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751905AbXILTwr (ORCPT ); Wed, 12 Sep 2007 15:52:47 -0400 X-Greylist: delayed 632 seconds by postgrey-1.27 at vger.kernel.org; Wed, 12 Sep 2007 15:52:46 EDT Date: Wed, 12 Sep 2007 21:41:51 +0200 From: Michal Januszewski To: Paul Mundt , Paulo Marques , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH -mm] uvesafb: Don't access VGA registers directly when running on non-x86 Message-ID: <20070912194151.GA5410@spock.one.pl> Reply-To: spock@gentoo.org References: <20070911081752.GA19495@linux-sh.org> <46E67EFD.2040902@grupopie.com> <20070911115346.GA23493@linux-sh.org> <46E687ED.9000802@grupopie.com> <20070911123159.GA23692@linux-sh.org> <20070911230959.GA16406@spock.one.pl> <20070912004437.GA26720@linux-sh.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Disposition: inline In-Reply-To: <20070912004437.GA26720@linux-sh.org> X-PGP-Key: http://dev.gentoo.org/~spock/spock.gpg User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2167 Lines: 71 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 --- diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c index 853323e..b983d26 100644 --- a/drivers/video/uvesafb.c +++ b/drivers/video/uvesafb.c @@ -19,8 +19,10 @@ #include #include #include