aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx25840/cx25840-firmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx25840/cx25840-firmware.c')
-rw-r--r--drivers/media/video/cx25840/cx25840-firmware.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/media/video/cx25840/cx25840-firmware.c b/drivers/media/video/cx25840/cx25840-firmware.c
index f43024f2aaef..12a73e64f756 100644
--- a/drivers/media/video/cx25840/cx25840-firmware.c
+++ b/drivers/media/video/cx25840/cx25840-firmware.c
@@ -83,11 +83,11 @@ static inline int check_fw_load(struct i2c_client *client, int size)
83 s |= cx25840_read(client, 0x800); 83 s |= cx25840_read(client, 0x800);
84 84
85 if (size != s) { 85 if (size != s) {
86 cx25840_err("firmware %s load failed\n", firmware); 86 v4l_err(client, "firmware %s load failed\n", firmware);
87 return -EINVAL; 87 return -EINVAL;
88 } 88 }
89 89
90 cx25840_info("loaded %s firmware (%d bytes)\n", firmware, size); 90 v4l_info(client, "loaded %s firmware (%d bytes)\n", firmware, size);
91 return 0; 91 return 0;
92} 92}
93 93
@@ -98,7 +98,7 @@ static inline int fw_write(struct i2c_client *client, u8 * data, int size)
98 if ((sent = i2c_master_send(client, data, size)) < size) { 98 if ((sent = i2c_master_send(client, data, size)) < size) {
99 99
100 if (fastfw) { 100 if (fastfw) {
101 cx25840_err("333MHz i2c firmware load failed\n"); 101 v4l_err(client, "333MHz i2c firmware load failed\n");
102 fastfw = 0; 102 fastfw = 0;
103 set_i2c_delay(client, 10); 103 set_i2c_delay(client, 10);
104 104
@@ -111,13 +111,12 @@ static inline int fw_write(struct i2c_client *client, u8 * data, int size)
111 } 111 }
112 112
113 if (i2c_master_send(client, data, size) < size) { 113 if (i2c_master_send(client, data, size) < size) {
114 cx25840_err 114 v4l_err(client, "100MHz i2c firmware load failed\n");
115 ("100MHz i2c firmware load failed\n");
116 return -ENOSYS; 115 return -ENOSYS;
117 } 116 }
118 117
119 } else { 118 } else {
120 cx25840_err("firmware load i2c failure\n"); 119 v4l_err(client, "firmware load i2c failure\n");
121 return -ENOSYS; 120 return -ENOSYS;
122 } 121 }
123 122
@@ -133,7 +132,7 @@ int cx25840_loadfw(struct i2c_client *client)
133 int size, send, retval; 132 int size, send, retval;
134 133
135 if (request_firmware(&fw, firmware, FWDEV(client)) != 0) { 134 if (request_firmware(&fw, firmware, FWDEV(client)) != 0) {
136 cx25840_err("unable to open firmware %s\n", firmware); 135 v4l_err(client, "unable to open firmware %s\n", firmware);
137 return -EINVAL; 136 return -EINVAL;
138 } 137 }
139 138