Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317343
b: refs/heads/master
c: 95649c4
h: refs/heads/master
i:
  317341: f17e130
  317339: 83a6592
  317335: 1143740
  317327: b3de571
  317311: 88f0398
v: v3
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Jun 14, 2012
1 parent 4b7abb8 commit 6df480a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 176f7842a8c0a19e0947f630d71bb53db312812f
refs/heads/master: 95649c425fa2805b76f183c27aeed93f159e47cc
9 changes: 8 additions & 1 deletion trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -1350,10 +1350,17 @@ static int XGIfb_get_fix(struct fb_fix_screeninfo *fix, int con,

strncpy(fix->id, "XGI", sizeof(fix->id) - 1);

fix->smem_start = xgifb_info->video_base;
/* if register_framebuffer has been called, we must lock */
if (atomic_read(&info->count))
mutex_lock(&info->mm_lock);

fix->smem_start = xgifb_info->video_base;
fix->smem_len = xgifb_info->video_size;

/* if register_framebuffer has been called, we can unlock */
if (atomic_read(&info->count))
mutex_unlock(&info->mm_lock);

fix->type = FB_TYPE_PACKED_PIXELS;
fix->type_aux = 0;
if (xgifb_info->video_bpp == 8)
Expand Down

0 comments on commit 6df480a

Please sign in to comment.