[media] em28xx: use atomic bit operations for devices-in-use mask
authorChris Rankin <rankincj@yahoo.com>
Sat, 20 Aug 2011 11:21:03 +0000 (08:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 3 Sep 2011 23:49:51 +0000 (20:49 -0300)
commit38b61eb2dac06fdc42815b004e9824d8196cfcfb
tree9a6a74936ab7c4d7d33511b247b0d745373caf9c
parentf38f33395232db1a03d21b992af1714cbffbdec4
[media] em28xx: use atomic bit operations for devices-in-use mask

Use atomic bit operations for the em28xx_devused mask, to prevent an
unlikely race condition should two adapters be plugged in
simultaneously. The operations also clearer than explicit bit
manipulation anyway.

Signed-off-by: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c