提交 cdbbc618 编写于 作者: A Aaro Koskinen 提交者: Greg Kroah-Hartman

staging: xgifb: delete pVBInfo->BaseAddr

Delete redundant field.
Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 b8e1cc5c
...@@ -1286,16 +1286,10 @@ unsigned char XGIInitNew(struct pci_dev *pdev) ...@@ -1286,16 +1286,10 @@ unsigned char XGIInitNew(struct pci_dev *pdev)
pVBInfo->FBAddr = HwDeviceExtension->pjVideoMemoryAddress; pVBInfo->FBAddr = HwDeviceExtension->pjVideoMemoryAddress;
pVBInfo->BaseAddr = xgifb_info->vga_base;
if (pVBInfo->FBAddr == NULL) { if (pVBInfo->FBAddr == NULL) {
dev_dbg(&pdev->dev, "pVBInfo->FBAddr == 0\n"); dev_dbg(&pdev->dev, "pVBInfo->FBAddr == 0\n");
return 0; return 0;
} }
if (pVBInfo->BaseAddr == 0) {
dev_dbg(&pdev->dev, "pVBInfo->BaseAddr == 0\n");
return 0;
}
XGIRegInit(pVBInfo, xgifb_info->vga_base); XGIRegInit(pVBInfo, xgifb_info->vga_base);
......
...@@ -5948,7 +5948,6 @@ unsigned char XGISetModeNew(struct xgifb_video_info *xgifb_info, ...@@ -5948,7 +5948,6 @@ unsigned char XGISetModeNew(struct xgifb_video_info *xgifb_info,
unsigned short ModeIdIndex; unsigned short ModeIdIndex;
struct vb_device_info VBINF; struct vb_device_info VBINF;
struct vb_device_info *pVBInfo = &VBINF; struct vb_device_info *pVBInfo = &VBINF;
pVBInfo->BaseAddr = xgifb_info->vga_base;
pVBInfo->IF_DEF_LVDS = 0; pVBInfo->IF_DEF_LVDS = 0;
if (HwDeviceExtension->jChipType >= XG20) { if (HwDeviceExtension->jChipType >= XG20) {
......
...@@ -156,7 +156,6 @@ struct vb_device_info { ...@@ -156,7 +156,6 @@ struct vb_device_info {
unsigned short SelectCRT2Rate; unsigned short SelectCRT2Rate;
void __iomem *FBAddr; void __iomem *FBAddr;
unsigned long BaseAddr;
unsigned char const (*SR15)[8]; unsigned char const (*SR15)[8];
unsigned char const (*CR40)[8]; unsigned char const (*CR40)[8];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册