summaryrefslogtreecommitdiff
path: root/drivers/staging/xgifb/XGI_main_26.c
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2013-02-03 21:54:32 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-04 18:46:27 (GMT)
commit8cedcc7022e40fa83339257e82e64754ca1c8b9a (patch)
treeff88ed3ac5271d62d7fa964d94f18c13be3dfd0a /drivers/staging/xgifb/XGI_main_26.c
parent44e1312c68e71a25f9f88ada7d124f5bbeaf879e (diff)
downloadlinux-8cedcc7022e40fa83339257e82e64754ca1c8b9a.tar.xz
staging/xgifb: mttr must be (signed) int
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>
Diffstat (limited to 'drivers/staging/xgifb/XGI_main_26.c')
-rw-r--r--drivers/staging/xgifb/XGI_main_26.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c
index 83f8a6a..fa351f9 100644
--- a/drivers/staging/xgifb/XGI_main_26.c
+++ b/drivers/staging/xgifb/XGI_main_26.c
@@ -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) ||