staging: xgifb: fix up MTRR printk
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sat, 10 Sep 2011 21:29:54 +0000 (00:29 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 12 Sep 2011 14:52:15 +0000 (16:52 +0200)
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>
drivers/staging/xgifb/XGI_main_26.c

index e018b9a43bc06d853217ea8e3b958b4bc1c21d54..1bff7f6caa4f1b307761f18e76e6c399f7a2ae86 100644 (file)
@@ -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) {