summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/i740fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/i740fb.c b/drivers/video/i740fb.c
index 8be03022134..fe574d84ed9 100644
--- a/drivers/video/i740fb.c
+++ b/drivers/video/i740fb.c
@@ -1179,9 +1179,9 @@ static void __devexit i740fb_remove(struct pci_dev *dev)
struct fb_info *info = pci_get_drvdata(dev);
if (info) {
-#ifdef CONFIG_MTRR
struct i740fb_par *par = info->par;
+#ifdef CONFIG_MTRR
if (par->mtrr_reg >= 0) {
mtrr_del(par->mtrr_reg, 0, 0);
par->mtrr_reg = -1;