Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205697
b: refs/heads/master
c: 1d9f9a9
h: refs/heads/master
i:
  205695: c4bc54b
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Jun 22, 2010
1 parent 510f78f commit 93dea59
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 621a683fe8003850cb9e9257f379b7c020157912
refs/heads/master: 1d9f9a9ba8a51fc6ac750aa33432a5a52eff039a
4 changes: 2 additions & 2 deletions trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -2994,15 +2994,15 @@ int __devinit xgifb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
strcpy(XGIhw_ext.szVBIOSVer, "0.84");


XGIhw_ext.pSR = vmalloc(sizeof(XGI_DSReg) * SR_BUFFER_SIZE);
XGIhw_ext.pSR = vmalloc(sizeof(struct XGI_DSReg) * SR_BUFFER_SIZE);
if (XGIhw_ext.pSR == NULL)
{
printk(KERN_ERR "XGIfb: Fatal error: Allocating SRReg space failed.\n");
return -ENODEV;
}
XGIhw_ext.pSR[0].jIdx = XGIhw_ext.pSR[0].jVal = 0xFF;

XGIhw_ext.pCR = vmalloc(sizeof(XGI_DSReg) * CR_BUFFER_SIZE);
XGIhw_ext.pCR = vmalloc(sizeof(struct XGI_DSReg) * CR_BUFFER_SIZE);
if (XGIhw_ext.pCR == NULL)
{
vfree(XGIhw_ext.pSR);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/xgifb/vb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ unsigned char XGIInitNew(PXGI_HW_DEVICE_INFO HwDeviceExtension)

/* unsigned long j, k ; */

PXGI_DSReg pSR ;
struct XGI_DSReg *pSR ;

unsigned long Temp ;

Expand Down
11 changes: 5 additions & 6 deletions trunk/drivers/staging/xgifb/vgatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@ enum XGI_LCD_TYPE {
};
#endif

#ifndef PXGI_DSReg
typedef struct _XGI_DSReg
struct XGI_DSReg
{
unsigned char jIdx;
unsigned char jVal;
} XGI_DSReg, *PXGI_DSReg;
#endif
};


#ifndef XGI_HW_DEVICE_INFO

Expand Down Expand Up @@ -116,12 +115,12 @@ struct _XGI_HW_DEVICE_INFO
unsigned char bIsPowerSaving; /* True: XGIInit() is invoked by power management,
otherwise by 2nd adapter's initialzation */

PXGI_DSReg pSR; /* restore SR registers in initial function. */
struct XGI_DSReg *pSR; /* restore SR registers in initial function. */
/* end data :(idx, val) = (FF, FF). */
/* Note : restore SR registers if */
/* bSkipDramSizing = 1 */

PXGI_DSReg pCR; /* restore CR registers in initial function. */
struct XGI_DSReg *pCR; /* restore CR registers in initial function. */
/* end data :(idx, val) = (FF, FF) */
/* Note : restore cR registers if */
/* bSkipDramSizing = 1 */
Expand Down

0 comments on commit 93dea59

Please sign in to comment.