aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision/usbvision-i2c.c
diff options
context:
space:
mode:
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 }