compat: Fixes missing sem member in struct device for RT PREEMPT prior to 2.6.34
authorBlaise Gassend <blaise@willowgarage.com>
Fri, 22 Oct 2010 09:32:04 +0000 (02:32 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 22 Oct 2010 09:32:04 +0000 (02:32 -0700)
commit4bf6730eac2ce1fb1610c9a4be822a2c738f379a
tree06b297e06555dac7146baf7a796ac4e6ba4ed0c1
parentcd70b7a481f2befdb06401e62c3653db22099eb1
compat: Fixes missing sem member in struct device for RT PREEMPT prior to 2.6.34

The RT PREEMPT patch eliminates the sem member in struct device
breaking device_lock, device_unlock and device_trylock in kernels
prior to 2.6.34. The attached patch replaces the use of sem by a use
of mutex.

Signed-off-by: Blaise Gassend <blaise@willowgarage.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
include/linux/compat-2.6.34.h