Skip to content

Commit

Permalink
i740fb: fix compile error when CONFIG_MTRR is not selected
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Florian Tobias Schandinat authored and Florian Tobias Schandinat committed Feb 19, 2012
1 parent 5350c65 commit 94f61a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/i740fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 94f61a7

Please sign in to comment.