[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)
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>

No differences found