Skip to content

Commit

Permalink
staging: xgifb: fix up MTRR printk
Browse files Browse the repository at this point in the history
The condition for printk() is wrong. Also change it to dev_info().

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Sep 12, 2011
1 parent 3028474 commit 15ebe6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -2418,8 +2418,8 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
(unsigned int) xgi_video_info.video_base,
(unsigned int) xgi_video_info.video_size,
MTRR_TYPE_WRCOMB, 1);
if (xgi_video_info.mtrr)
printk(KERN_INFO "XGIfb: Added MTRRs\n");
if (xgi_video_info.mtrr >= 0)
dev_info(&pdev->dev, "added MTRR\n");
#endif

if (register_framebuffer(fb_info) < 0) {
Expand Down

0 comments on commit 15ebe6c

Please sign in to comment.