linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: [PATCH] arkfb: Fix compile error if CONFIG_MTRR=n
Date: Tue, 08 May 2007 20:26:49 +0800	[thread overview]
Message-ID: <46406C89.50702@gmail.com> (raw)
In-Reply-To: <20070507233102.3ed6c42d.akpm@linux-foundation.org>

Fix compile error if CONFIG_MTRR=n

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
---
Andrew Morton wrote:
> On Sat, 05 May 2007 22:52:25 +0800 "Antonino A. Daplas" <adaplas@gmail.com> wrote:
> 
>> This patch adds fbdev driver for graphics cards with
>> ARK Logic 2000PV graphics chip with ICS 5342 ramdac.
> 
> also breaks with CONFIG_MTRR=n

 drivers/video/arkfb.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/video/arkfb.c b/drivers/video/arkfb.c
index 7155508..a0c4d22 100644
--- a/drivers/video/arkfb.c
+++ b/drivers/video/arkfb.c
@@ -1055,12 +1055,10 @@ err_enable_device:
 static void __devexit ark_pci_remove(struct pci_dev *dev)
 {
 	struct fb_info *info = pci_get_drvdata(dev);
+	struct arkfb_info *par = info->par;
 
 	if (info) {
-
 #ifdef CONFIG_MTRR
-		struct arkfb_info *par = info->par;
-
 		if (par->mtrr_reg >= 0) {
 			mtrr_del(par->mtrr_reg, 0, 0);
 			par->mtrr_reg = -1;


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

  reply	other threads:[~2007-05-08 12:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-05 14:52 [PATCH 07/20] arkfb: New framebuffer driver for ARK Logic cards Antonino A. Daplas
2007-05-08  6:31 ` Andrew Morton
2007-05-08 12:26   ` Antonino A. Daplas [this message]
2007-05-08 17:04     ` [PATCH] arkfb: Fix compile error if CONFIG_MTRR=n Ondrej Zajicek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46406C89.50702@gmail.com \
    --to=adaplas@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).