summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorChris Rankin2011-08-20 13:31:05 +0200
committerMauro Carvalho Chehab2011-09-04 01:50:11 +0200
commit76424a0a50982e4026c7d1d5a0cddc92eecc5969 (patch)
tree36296bc5a0cf782c8e9f18d691eee984d776c4ab /drivers/media/video/em28xx
parent[media] em28xx: clean up resources should init fail (diff)
downloadkernel-qcow2-linux-76424a0a50982e4026c7d1d5a0cddc92eecc5969.tar.gz
kernel-qcow2-linux-76424a0a50982e4026c7d1d5a0cddc92eecc5969.tar.xz
kernel-qcow2-linux-76424a0a50982e4026c7d1d5a0cddc92eecc5969.zip
[media] em28xx: move printk lines outside mutex lock
There's no reason to still be holding the device list mutex for either of these printk statements. Signed-off-by: Chris Rankin <rankincj@yahoo.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r--drivers/media/video/em28xx/em28xx-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c
index ebff91709b57..bd481ab65f29 100644
--- a/drivers/media/video/em28xx/em28xx-core.c
+++ b/drivers/media/video/em28xx/em28xx-core.c
@@ -1210,8 +1210,8 @@ int em28xx_register_extension(struct em28xx_ops *ops)
list_for_each_entry(dev, &em28xx_devlist, devlist) {
ops->init(dev);
}
- printk(KERN_INFO "Em28xx: Initialized (%s) extension\n", ops->name);
mutex_unlock(&em28xx_devlist_mutex);
+ printk(KERN_INFO "Em28xx: Initialized (%s) extension\n", ops->name);
return 0;
}
EXPORT_SYMBOL(em28xx_register_extension);
@@ -1224,9 +1224,9 @@ void em28xx_unregister_extension(struct em28xx_ops *ops)
list_for_each_entry(dev, &em28xx_devlist, devlist) {
ops->fini(dev);
}
- printk(KERN_INFO "Em28xx: Removed (%s) extension\n", ops->name);
list_del(&ops->next);
mutex_unlock(&em28xx_devlist_mutex);
+ printk(KERN_INFO "Em28xx: Removed (%s) extension\n", ops->name);
}
EXPORT_SYMBOL(em28xx_unregister_extension);