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] vt8623fb: Fix compile error if CONFIG_MTRR=n
Date: Tue, 08 May 2007 20:28:21 +0800	[thread overview]
Message-ID: <46406CE5.6040309@gmail.com> (raw)
In-Reply-To: <20070507232837.d3dfcfb4.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:49:14 +0800 "Antonino A. Daplas" <adaplas@gmail.com> wrote:
> 
>> This patch adds fbdev driver for graphics core in VIA VT8623
> 
> Is bust with CONFIG_MTRR=n
> 
> drivers/video/vt8623fb.c: In function `vt8623_pci_remove':
> drivers/video/vt8623fb.c:797: error: `par' undeclared (first use in this function)
> drivers/video/vt8623fb.c:797: error: (Each undeclared identifier is reported only once
> drivers/video/vt8623fb.c:797: error: for each function it appears in.)
> 
> (that's ia64)

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

diff --git a/drivers/video/vt8623fb.c b/drivers/video/vt8623fb.c
index 414e76b..5e9755e 100644
--- a/drivers/video/vt8623fb.c
+++ b/drivers/video/vt8623fb.c
@@ -778,12 +778,10 @@ err_enable_device:
 static void __devexit vt8623_pci_remove(struct pci_dev *dev)
 {
 	struct fb_info *info = pci_get_drvdata(dev);
+	struct vt8623fb_info *par = info->par;
 
 	if (info) {
-
 #ifdef CONFIG_MTRR
-		struct vt8623fb_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:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-05 14:49 [PATCH 06/20] vt8623fb: New framebuffer driver for VIA VT8623 Antonino A. Daplas
2007-05-05 18:15 ` Ville Syrjälä
2007-05-05 20:08   ` Ondrej Zajicek
2007-05-05 20:34     ` Ville Syrjälä
2007-05-05 22:48       ` Luc Verhaegen
2007-05-05 23:07         ` Antonino A. Daplas
2007-05-05 23:31           ` Luc Verhaegen
2007-05-05 23:38             ` Luc Verhaegen
2007-05-06  1:36               ` Ville Syrjälä
2007-05-06  2:07                 ` Luc Verhaegen
2007-05-05 23:03       ` Antonino A. Daplas
2007-05-08  6:28 ` Andrew Morton
2007-05-08 12:28   ` Antonino A. Daplas [this message]

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=46406CE5.6040309@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).