diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-04-20 09:20:26 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-04-20 09:20:26 (GMT) |
commit | 4f2970b9f622ba180680a5892be6534cc58843e0 (patch) | |
tree | a610bb0906bbb341342ecff597f9928cb47a14c2 /drivers/video/s3fb.c | |
parent | 86c0f043a737dadf034a4e6f29aefb074f4a1146 (diff) | |
download | linux-fsl-qoriq-4f2970b9f622ba180680a5892be6534cc58843e0.tar.xz |
s3fb: fix up DDC build with MTRR disabled.
drivers/video/s3fb.c: In function 's3_pci_remove':
drivers/video/s3fb.c:1388: error: 'par' undeclared (first use in this function)
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/s3fb.c')
-rw-r--r-- | drivers/video/s3fb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c index 9a34520..4ca5d0c 100644 --- a/drivers/video/s3fb.c +++ b/drivers/video/s3fb.c @@ -1369,12 +1369,11 @@ err_enable_device: static void __devexit s3_pci_remove(struct pci_dev *dev) { struct fb_info *info = pci_get_drvdata(dev); + struct s3fb_info __maybe_unused *par = info->par; if (info) { #ifdef CONFIG_MTRR - struct s3fb_info *par = info->par; - if (par->mtrr_reg >= 0) { mtrr_del(par->mtrr_reg, 0, 0); par->mtrr_reg = -1; |