]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/xgifb: mttr must be (signed) int
authorPeter Huewe <peterhuewe@gmx.de>
Sun, 3 Feb 2013 21:54:32 +0000 (22:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 18:46:27 +0000 (10:46 -0800)
The mttr field must be declared as signed int (as in every other fb
driver) for the mttr functions to work properly.
Moreover the value should be initialized with -1.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c
drivers/staging/xgifb/XGIfb.h

index 83f8a6a662c0ea88eccf73fb0dd213dab4af7a6b..fa351f90da3356648923fa6f7eccc79f19ae75fe 100644 (file)
@@ -1802,7 +1802,7 @@ static int xgifb_probe(struct pci_dev *pdev,
        if (!XGIInitNew(pdev))
                dev_err(&pdev->dev, "XGIInitNew() failed!\n");
 
-       xgifb_info->mtrr = (unsigned int) 0;
+       xgifb_info->mtrr = -1;
 
        xgifb_info->hasVB = HASVB_NONE;
        if ((xgifb_info->chip == XG20) ||
index 80547983759b01639b5ba8d7533ee12532ef8e84..af50362395d5f3a3d7ebdacd57c6b564b62e8621 100644 (file)
@@ -67,7 +67,7 @@ struct xgifb_video_info {
        unsigned long mmio_size;
        void __iomem *mmio_vbase;
        unsigned long vga_base;
-       unsigned long mtrr;
+       int mtrr;
 
        int    video_bpp;
        int    video_cmap_len;