X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmedia%2Fvideo%2Fcx88%2Fcx88-blackbird.c;h=f637d34d5062e03fe22136a133b5a77963916b47;hb=1d6213ab995c61f7d1d81cf6cf876acf15d6e714;hp=bca307eb1e249ebb7d852317a1ebdf192fbec2fe;hpb=b87a2d3e3147bd140da2eae584772c353d11421b;p=pandora-kernel.git diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index bca307eb1e24..f637d34d5062 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c @@ -1122,7 +1122,6 @@ static int mpeg_release(struct file *file) mutex_lock(&dev->core->lock); file->private_data = NULL; kfree(fh); - mutex_unlock(&dev->core->lock); /* Make sure we release the hardware */ drv = cx8802_get_driver(dev, CX88_MPEG_BLACKBIRD); @@ -1131,6 +1130,8 @@ static int mpeg_release(struct file *file) atomic_dec(&dev->core->mpeg_users); + mutex_unlock(&dev->core->lock); + return 0; } @@ -1334,11 +1335,9 @@ static int cx8802_blackbird_probe(struct cx8802_driver *drv) blackbird_register_video(dev); /* initial device configuration: needed ? */ - mutex_lock(&dev->core->lock); // init_controls(core); cx88_set_tvnorm(core,core->tvnorm); cx88_video_mux(core,0); - mutex_unlock(&dev->core->lock); return 0;