Skip to content

Commit

Permalink
Staging: xgifb: Remove unused spinlock in struct video_info
Browse files Browse the repository at this point in the history
xgifb framebuffer driver had an option to use an accelerator engine that never
got used (XGIfb_accel was always 0).

An earlier patchset removed the code relevant to the accelerator.
Since this spinlock was used only for that code, it can be deleted as well.

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Acked-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Javier Martinez Canillas authored and Greg Kroah-Hartman committed Feb 23, 2011
1 parent 0089bf1 commit 522f1f6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/xgifb/XGIfb.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#ifndef _LINUX_XGIFB
#define _LINUX_XGIFB
#include <linux/spinlock.h>
#include <asm/ioctl.h>
#include <asm/types.h>

Expand Down Expand Up @@ -190,8 +189,6 @@ struct video_info{
unsigned long XGI310_AccelDepth;
unsigned long CommandReg;

spinlock_t lockaccel;

unsigned int pcibus;
unsigned int pcislot;
unsigned int pcifunc;
Expand Down

0 comments on commit 522f1f6

Please sign in to comment.