aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/sq905c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/sq905c.c')
-rw-r--r--drivers/media/video/gspca/sq905c.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/gspca/sq905c.c b/drivers/media/video/gspca/sq905c.c
index 457563b7a71b..c2c056056e08 100644
--- a/drivers/media/video/gspca/sq905c.c
+++ b/drivers/media/video/gspca/sq905c.c
@@ -27,6 +27,8 @@
27 * and may contain code fragments from it. 27 * and may contain code fragments from it.
28 */ 28 */
29 29
30#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
31
30#define MODULE_NAME "sq905c" 32#define MODULE_NAME "sq905c"
31 33
32#include <linux/workqueue.h> 34#include <linux/workqueue.h>
@@ -95,8 +97,7 @@ static int sq905c_command(struct gspca_dev *gspca_dev, u16 command, u16 index)
95 command, index, NULL, 0, 97 command, index, NULL, 0,
96 SQ905C_CMD_TIMEOUT); 98 SQ905C_CMD_TIMEOUT);
97 if (ret < 0) { 99 if (ret < 0) {
98 err("%s: usb_control_msg failed (%d)", 100 pr_err("%s: usb_control_msg failed (%d)\n", __func__, ret);
99 __func__, ret);
100 return ret; 101 return ret;
101 } 102 }
102 103
@@ -115,8 +116,7 @@ static int sq905c_read(struct gspca_dev *gspca_dev, u16 command, u16 index,
115 command, index, gspca_dev->usb_buf, size, 116 command, index, gspca_dev->usb_buf, size,
116 SQ905C_CMD_TIMEOUT); 117 SQ905C_CMD_TIMEOUT);
117 if (ret < 0) { 118 if (ret < 0) {
118 err("%s: usb_control_msg failed (%d)", 119 pr_err("%s: usb_control_msg failed (%d)\n", __func__, ret);
119 __func__, ret);
120 return ret; 120 return ret;
121 } 121 }
122 122
@@ -146,7 +146,7 @@ static void sq905c_dostream(struct work_struct *work)
146 146
147 buffer = kmalloc(SQ905C_MAX_TRANSFER, GFP_KERNEL | GFP_DMA); 147 buffer = kmalloc(SQ905C_MAX_TRANSFER, GFP_KERNEL | GFP_DMA);
148 if (!buffer) { 148 if (!buffer) {
149 err("Couldn't allocate USB buffer"); 149 pr_err("Couldn't allocate USB buffer\n");
150 goto quit_stream; 150 goto quit_stream;
151 } 151 }
152 152