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" [off-list ref] wrote:
quoted
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/