Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268788
b: refs/heads/master
c: 19c1e88
h: refs/heads/master
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Oct 12, 2011
1 parent 066c8b8 commit 868fab4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 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: 54301b5cfe3c16002ab25762a8cd2186beee4a75
refs/heads/master: 19c1e88e02c63008745c8549513e53df4aac868f
3 changes: 0 additions & 3 deletions trunk/drivers/staging/xgifb/XGI_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ MODULE_DEVICE_TABLE(pci, xgifb_pci_table);

/* ------------------- Global Variables ----------------------------- */

/* Fbcon variables */
static struct fb_info *fb_info;

static struct fb_var_screeninfo default_var = {
.xres = 0,
.yres = 0,
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -1986,12 +1986,14 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
u8 CR48, CR38;
int ret;
bool xgi21_drvlcdcaplist = false;
struct fb_info *fb_info;

memset(&XGIhw_ext, 0, sizeof(struct xgi_hw_device_info));
fb_info = framebuffer_alloc(sizeof(struct fb_info), &pdev->dev);
if (!fb_info)
return -ENOMEM;

xgi_video_info.fb_info = fb_info;
xgi_video_info.chip_id = pdev->device;
pci_read_config_byte(pdev,
PCI_REVISION_ID,
Expand Down Expand Up @@ -2447,6 +2449,7 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
static void __devexit xgifb_remove(struct pci_dev *pdev)
{
struct video_info *xgifb_info = pci_get_drvdata(pdev);
struct fb_info *fb_info = xgifb_info->fb_info;

unregister_framebuffer(fb_info);
#ifdef CONFIG_MTRR
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/staging/xgifb/XGIfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ enum xgi_tv_plug { /* vicki@030226 */
};

struct video_info {
struct fb_info *fb_info;

int chip_id;
unsigned int video_size;
unsigned long video_base;
Expand Down

0 comments on commit 868fab4

Please sign in to comment.