diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-03-16 17:38:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-16 22:25:04 -0400 |
commit | d8ad7e0b84bde480d295ef1e0381c0c6050f57b3 (patch) | |
tree | 304d5c6bc848ac1a84ccd4a500dcf078df0dd483 /drivers/video/savage | |
parent | 5b600464f0514efd49d24182daf0e9d62cf8bb8f (diff) |
[PATCH] savagefb: Fix compile error if debugging is enabled
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>
Diffstat (limited to 'drivers/video/savage')
-rw-r--r-- | drivers/video/savage/savagefb_driver.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/savage/savagefb_driver.c b/drivers/video/savage/savagefb_driver.c index d952bf3199a6..0166ec2ccf32 100644 --- a/drivers/video/savage/savagefb_driver.c +++ b/drivers/video/savage/savagefb_driver.c | |||
@@ -509,7 +509,7 @@ static int common_calc_clock(long freq, int min_m, int min_n1, int max_n1, | |||
509 | #ifdef SAVAGEFB_DEBUG | 509 | #ifdef SAVAGEFB_DEBUG |
510 | /* This function is used to debug, it prints out the contents of s3 regs */ | 510 | /* This function is used to debug, it prints out the contents of s3 regs */ |
511 | 511 | ||
512 | static void SavagePrintRegs(void) | 512 | static void SavagePrintRegs(struct savagefb_par *par) |
513 | { | 513 | { |
514 | unsigned char i; | 514 | unsigned char i; |
515 | int vgaCRIndex = 0x3d4; | 515 | int vgaCRIndex = 0x3d4; |
@@ -1538,7 +1538,7 @@ static int savagefb_set_par(struct fb_info *info) | |||
1538 | savagefb_set_fix(info); | 1538 | savagefb_set_fix(info); |
1539 | savagefb_set_clip(info); | 1539 | savagefb_set_clip(info); |
1540 | 1540 | ||
1541 | SavagePrintRegs(); | 1541 | SavagePrintRegs(par); |
1542 | return 0; | 1542 | return 0; |
1543 | } | 1543 | } |
1544 | 1544 | ||
@@ -2168,7 +2168,6 @@ static int __devinit savagefb_probe(struct pci_dev* dev, | |||
2168 | int video_len; | 2168 | int video_len; |
2169 | 2169 | ||
2170 | DBG("savagefb_probe"); | 2170 | DBG("savagefb_probe"); |
2171 | SavagePrintRegs(); | ||
2172 | 2171 | ||
2173 | info = framebuffer_alloc(sizeof(struct savagefb_par), &dev->dev); | 2172 | info = framebuffer_alloc(sizeof(struct savagefb_par), &dev->dev); |
2174 | if (!info) | 2173 | if (!info) |