aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision/usbvision-i2c.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2009-01-08 07:13:42 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:26 -0400
commitbe9ed5117d95cdc4e601f9da220ebeaaab131679 (patch)
tree9dc12b47951ded56ec654c579253e07514360fd2 /drivers/media/video/usbvision/usbvision-i2c.c
parentf180152376c984a6faa9decb8f2811c373da9141 (diff)
V4L/DVB (10298): remove err macro from few usb devices
Patch removes err() macros from few usb devices. It places pr_err in pvrusb2-v4l2.c, dev_err in dabusb and in usbvision drivers. Beside placing dev_err, patch defines new s2255_dev_err macro with S2255_DRIVER_NAME in s2255 module. Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Acked-by: Thierry Merle <thierry.merle@free.fr> Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/usbvision/usbvision-i2c.c')
-rw-r--r--drivers/media/video/usbvision/usbvision-i2c.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/usbvision/usbvision-i2c.c b/drivers/media/video/usbvision/usbvision-i2c.c
index 6b66ae4f430f..6057098282ca 100644
--- a/drivers/media/video/usbvision/usbvision-i2c.c
+++ b/drivers/media/video/usbvision/usbvision-i2c.c
@@ -119,7 +119,8 @@ static inline int usb_find_address(struct i2c_adapter *i2c_adap,
119 /* try extended address code... */ 119 /* try extended address code... */
120 ret = try_write_address(i2c_adap, addr, retries); 120 ret = try_write_address(i2c_adap, addr, retries);
121 if (ret != 1) { 121 if (ret != 1) {
122 err("died at extended address code, while writing"); 122 dev_err(&i2c_adap->dev,
123 "died at extended address code, while writing\n");
123 return -EREMOTEIO; 124 return -EREMOTEIO;
124 } 125 }
125 add[0] = addr; 126 add[0] = addr;
@@ -128,7 +129,8 @@ static inline int usb_find_address(struct i2c_adapter *i2c_adap,
128 addr |= 0x01; 129 addr |= 0x01;
129 ret = try_read_address(i2c_adap, addr, retries); 130 ret = try_read_address(i2c_adap, addr, retries);
130 if (ret != 1) { 131 if (ret != 1) {
131 err("died at extended address code, while reading"); 132 dev_err(&i2c_adap->dev,
133 "died at extended address code, while reading\n");
132 return -EREMOTEIO; 134 return -EREMOTEIO;
133 } 135 }
134 } 136 }