Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8cedcc70 authored by Peter Huewe's avatar Peter Huewe Committed by Greg Kroah-Hartman
Browse files

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: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 44e1312c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1802,7 +1802,7 @@ static int xgifb_probe(struct pci_dev *pdev,
	if (!XGIInitNew(pdev))
	if (!XGIInitNew(pdev))
		dev_err(&pdev->dev, "XGIInitNew() failed!\n");
		dev_err(&pdev->dev, "XGIInitNew() failed!\n");


	xgifb_info->mtrr = (unsigned int) 0;
	xgifb_info->mtrr = -1;


	xgifb_info->hasVB = HASVB_NONE;
	xgifb_info->hasVB = HASVB_NONE;
	if ((xgifb_info->chip == XG20) ||
	if ((xgifb_info->chip == XG20) ||
+1 −1
Original line number Original line Diff line number Diff line
@@ -67,7 +67,7 @@ struct xgifb_video_info {
	unsigned long mmio_size;
	unsigned long mmio_size;
	void __iomem *mmio_vbase;
	void __iomem *mmio_vbase;
	unsigned long vga_base;
	unsigned long vga_base;
	unsigned long mtrr;
	int mtrr;


	int    video_bpp;
	int    video_bpp;
	int    video_cmap_len;
	int    video_cmap_len;