]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
[PATCH] savagefb: Fix compile error if debugging is enabled
authorAntonino A. Daplas <adaplas@gmail.com>
Fri, 16 Mar 2007 21:38:18 +0000 (13:38 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 17 Mar 2007 02:25:04 +0000 (19:25 -0700)
SavagePrintRegs() requires struct savagefb_par.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/savage/savagefb_driver.c

index d952bf3199a6a6474de0e8b5a6ca17fb9e6925cc..0166ec2ccf32c1b59057cd61bf6d6f20a7997614 100644 (file)
@@ -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;
@@ -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;
 }
 
@@ -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)