浏览代码

i740fb: fix compile error when CONFIG_MTRR is not selected

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Florian Tobias Schandinat 13 年之前
父节点
当前提交
94f61a7666
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/video/i740fb.c

+ 1 - 1
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);
 	struct fb_info *info = pci_get_drvdata(dev);
 
 
 	if (info) {
 	if (info) {
-#ifdef CONFIG_MTRR
 		struct i740fb_par *par = info->par;
 		struct i740fb_par *par = info->par;
 
 
+#ifdef CONFIG_MTRR
 		if (par->mtrr_reg >= 0) {
 		if (par->mtrr_reg >= 0) {
 			mtrr_del(par->mtrr_reg, 0, 0);
 			mtrr_del(par->mtrr_reg, 0, 0);
 			par->mtrr_reg = -1;
 			par->mtrr_reg = -1;