]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
i740fb: fix compile error when CONFIG_MTRR is not selected
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 19 Feb 2012 19:11:51 +0000 (19:11 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 19 Feb 2012 19:11:51 +0000 (19:11 +0000)
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/i740fb.c

index 8be0302213435ee189c62c96b629ee89e8e406bb..fe574d84ed9973e5f2abdf1240b27487249df3af 100644 (file)
@@ -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;