Skip to content

Commit

Permalink
[PATCH] savagefb: Fix compile error if debugging is enabled
Browse files Browse the repository at this point in the history
SavagePrintRegs() requires struct savagefb_par.

Signed-off-by: Antonino Daplas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
adaplas authored and Linus Torvalds committed Mar 17, 2007
1 parent 5b60046 commit d8ad7e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/video/savage/savagefb_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ static int common_calc_clock(long freq, int min_m, int min_n1, int max_n1,
#ifdef SAVAGEFB_DEBUG
/* 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;
int vgaCRIndex = 0x3d4;
Expand Down Expand Up @@ -1538,7 +1538,7 @@ static int savagefb_set_par(struct fb_info *info)
savagefb_set_fix(info);
savagefb_set_clip(info);

SavagePrintRegs();
SavagePrintRegs(par);
return 0;
}

Expand Down Expand Up @@ -2168,7 +2168,6 @@ static int __devinit savagefb_probe(struct pci_dev* dev,
int video_len;

DBG("savagefb_probe");
SavagePrintRegs();

info = framebuffer_alloc(sizeof(struct savagefb_par), &dev->dev);
if (!info)
Expand Down

0 comments on commit d8ad7e0

Please sign in to comment.