Skip to content

Commit

Permalink
staging/xgifb: mttr must be (signed) int
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Feb 4, 2013
1 parent 44e1312 commit 8cedcc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/xgifb/XGIfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8cedcc7

Please sign in to comment.