diff options
Diffstat (limited to 'drivers/media/video/stv680.c')
-rw-r--r-- | drivers/media/video/stv680.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/video/stv680.c b/drivers/media/video/stv680.c index dce947439459..9c549d935994 100644 --- a/drivers/media/video/stv680.c +++ b/drivers/media/video/stv680.c | |||
@@ -84,7 +84,8 @@ static unsigned int debug; | |||
84 | #define PDEBUG(level, fmt, args...) \ | 84 | #define PDEBUG(level, fmt, args...) \ |
85 | do { \ | 85 | do { \ |
86 | if (debug >= level) \ | 86 | if (debug >= level) \ |
87 | info("[%s:%d] " fmt, __func__, __LINE__ , ## args); \ | 87 | printk(KERN_INFO KBUILD_MODNAME " [%s:%d] \n" fmt, \ |
88 | __func__, __LINE__ , ## args); \ | ||
88 | } while (0) | 89 | } while (0) |
89 | 90 | ||
90 | 91 | ||
@@ -1086,6 +1087,7 @@ static int stv_open (struct inode *inode, struct file *file) | |||
1086 | int err = 0; | 1087 | int err = 0; |
1087 | 1088 | ||
1088 | /* we are called with the BKL held */ | 1089 | /* we are called with the BKL held */ |
1090 | lock_kernel(); | ||
1089 | stv680->user = 1; | 1091 | stv680->user = 1; |
1090 | err = stv_init (stv680); /* main initialization routine for camera */ | 1092 | err = stv_init (stv680); /* main initialization routine for camera */ |
1091 | 1093 | ||
@@ -1099,6 +1101,7 @@ static int stv_open (struct inode *inode, struct file *file) | |||
1099 | } | 1101 | } |
1100 | if (err) | 1102 | if (err) |
1101 | stv680->user = 0; | 1103 | stv680->user = 0; |
1104 | unlock_kernel(); | ||
1102 | 1105 | ||
1103 | return err; | 1106 | return err; |
1104 | } | 1107 | } |
@@ -1550,7 +1553,8 @@ static int __init usb_stv680_init (void) | |||
1550 | } | 1553 | } |
1551 | PDEBUG (0, "STV(i): usb camera driver version %s registering", DRIVER_VERSION); | 1554 | PDEBUG (0, "STV(i): usb camera driver version %s registering", DRIVER_VERSION); |
1552 | 1555 | ||
1553 | info(DRIVER_DESC " " DRIVER_VERSION); | 1556 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
1557 | DRIVER_DESC "\n"); | ||
1554 | return 0; | 1558 | return 0; |
1555 | } | 1559 | } |
1556 | 1560 | ||