diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2011-02-21 10:09:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-23 14:18:07 -0800 |
commit | c73d0d55069b94630338bfeeae6d8149770e0451 (patch) | |
tree | 2f0fff81d6ab3d2ebe96dfa64cd4361e55a69450 /drivers/staging/xgifb/XGI_accel.c | |
parent | 898fcb98066cfcd6051d61638e7e3a305de34c85 (diff) | |
download | kernel_samsung_smdk4412-c73d0d55069b94630338bfeeae6d8149770e0451.zip kernel_samsung_smdk4412-c73d0d55069b94630338bfeeae6d8149770e0451.tar.gz kernel_samsung_smdk4412-c73d0d55069b94630338bfeeae6d8149770e0451.tar.bz2 |
Staging: xgifb: Remove unused spinlock conditional compilation logic
xgifb staging driver for XG20, XG21, XG40, XG42 frame buffer device
has a accelerator engine that never get used (XGIfb_accel is always 0).
Also the driver has a set of defines that hides the synchronization
mechanism used to access critical sections and a way to disable spinlocks
use at compile time.
In a earlier patch all the code that depends on the accelerator being active
was deleted because it was dead code. Since the only usage of this
synchronization defines were in that dead code, this patch removes all the
now unused spinlock conditional compilation logic.
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>
Diffstat (limited to 'drivers/staging/xgifb/XGI_accel.c')
-rw-r--r-- | drivers/staging/xgifb/XGI_accel.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/xgifb/XGI_accel.c b/drivers/staging/xgifb/XGI_accel.c index e6241fe..7c69e07 100644 --- a/drivers/staging/xgifb/XGI_accel.c +++ b/drivers/staging/xgifb/XGI_accel.c @@ -105,9 +105,6 @@ XGI310Sync(void) int XGIfb_initaccel(void) { -#ifdef XGIFB_USE_SPINLOCKS - spin_lock_init(&xgi_video_info.lockaccel); -#endif return(0); } |