mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
UPSTREAM: [media] media: rc: remove unneeded mutex in rc_register_device
Access to dev->initialized is atomic and dev->initialized isn't
accessed in any other code protected by this mutex.
Therefore we don't need to get the mutex here.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
(cherry picked from commit 36ac2f3259)
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
committed by
Tao Huang
parent
21c5445593
commit
3e8809ffb6
@@ -1492,9 +1492,7 @@ int rc_register_device(struct rc_dev *dev)
|
||||
}
|
||||
|
||||
/* Allow the RC sysfs nodes to be accessible */
|
||||
mutex_lock(&dev->lock);
|
||||
atomic_set(&dev->initialized, 1);
|
||||
mutex_unlock(&dev->lock);
|
||||
|
||||
IR_dprintk(1, "Registered rc%u (driver: %s, remote: %s, mode %s)\n",
|
||||
dev->minor,
|
||||
|
||||
Reference in New Issue
Block a user