Commit d8ad7e0b authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds

[PATCH] savagefb: Fix compile error if debugging is enabled

SavagePrintRegs() requires struct savagefb_par.
Signed-off-by: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5b600464
...@@ -509,7 +509,7 @@ static int common_calc_clock(long freq, int min_m, int min_n1, int max_n1, ...@@ -509,7 +509,7 @@ static int common_calc_clock(long freq, int min_m, int min_n1, int max_n1,
#ifdef SAVAGEFB_DEBUG #ifdef SAVAGEFB_DEBUG
/* This function is used to debug, it prints out the contents of s3 regs */ /* This function is used to debug, it prints out the contents of s3 regs */
static void SavagePrintRegs(void) static void SavagePrintRegs(struct savagefb_par *par)
{ {
unsigned char i; unsigned char i;
int vgaCRIndex = 0x3d4; int vgaCRIndex = 0x3d4;
...@@ -1538,7 +1538,7 @@ static int savagefb_set_par(struct fb_info *info) ...@@ -1538,7 +1538,7 @@ static int savagefb_set_par(struct fb_info *info)
savagefb_set_fix(info); savagefb_set_fix(info);
savagefb_set_clip(info); savagefb_set_clip(info);
SavagePrintRegs(); SavagePrintRegs(par);
return 0; return 0;
} }
...@@ -2168,7 +2168,6 @@ static int __devinit savagefb_probe(struct pci_dev* dev, ...@@ -2168,7 +2168,6 @@ static int __devinit savagefb_probe(struct pci_dev* dev,
int video_len; int video_len;
DBG("savagefb_probe"); DBG("savagefb_probe");
SavagePrintRegs();
info = framebuffer_alloc(sizeof(struct savagefb_par), &dev->dev); info = framebuffer_alloc(sizeof(struct savagefb_par), &dev->dev);
if (!info) if (!info)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment