compat: lock correct mutex in device_lock
[~emulex/for-vlad/old/compat.git] / include / linux / compat-2.6.34.h
index f710d08..763abca 100644 (file)
@@ -143,7 +143,7 @@ do {                                                                \
 static inline void device_lock(struct device *dev)
 {
 #if defined(CONFIG_PREEMPT_RT) || defined(CONFIG_PREEMPT_DESKTOP)
-        mutex_lock(&dev->parent->mutex);
+        mutex_lock(&dev->mutex);
 #else
        down(&dev->sem);
 #endif