static inline void device_lock(struct device *dev)
{
-#if defined(CONFIG_NONE) || defined(CONFIG_PREEMPT_RT) || \
- defined(CONFIG_PREEMPT_VOLUNTARY) || defined(CONFIG_PREEMPT_DESKTOP)
+#if defined(CONFIG_PREEMPT_RT) || defined(CONFIG_PREEMPT_DESKTOP)
mutex_lock(&dev->parent->mutex);
#else
down(&dev->sem);
static inline int device_trylock(struct device *dev)
{
-#if defined(CONFIG_NONE) || defined(CONFIG_PREEMPT_RT) || \
- defined(CONFIG_PREEMPT_VOLUNTARY) || defined(CONFIG_PREEMPT_DESKTOP)
+#if defined(CONFIG_PREEMPT_RT) || defined(CONFIG_PREEMPT_DESKTOP)
return mutex_trylock(&dev->mutex);
#else
return down_trylock(&dev->sem);
static inline void device_unlock(struct device *dev)
{
-#if defined(CONFIG_NONE) || defined(CONFIG_PREEMPT_RT) || \
- defined(CONFIG_PREEMPT_VOLUNTARY) || defined(CONFIG_PREEMPT_DESKTOP)
+#if defined(CONFIG_PREEMPT_RT) || defined(CONFIG_PREEMPT_DESKTOP)
mutex_unlock(&dev->mutex);
#else
up(&dev->sem);