[media] cx88: Don't allow opening a device while it is not ready
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 Feb 2011 10:01:51 +0000 (07:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:00 +0000 (20:32 -0300)
commit121ec13267fabcf2c81e4584f1505069e234b30d
tree3ec419067d994be255f9b64a46682e5760b10a8f
parentb618726414f3eb7b0b122e459efe3c5edc36b2fc
[media] cx88: Don't allow opening a device while it is not ready

After registering the cdev, it would be possible do have an open on it.
In a matter of fact, some versions of udev do this. So, move registration
to the end and protect it with a mutex.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-video.c