.. | .. |
---|
190 | 190 | { |
---|
191 | 191 | struct device *dev = max96715->dev; |
---|
192 | 192 | struct i2c_client *client = max96715->client; |
---|
193 | | - struct maxim4c *maxim4c = max96715->local; |
---|
194 | 193 | int ret = 0; |
---|
195 | 194 | |
---|
196 | 195 | ret = maxim4c_remote_i2c_addr_select(max96715, MAXIM4C_I2C_SER_DEF); |
---|
.. | .. |
---|
206 | 205 | return ret; |
---|
207 | 206 | |
---|
208 | 207 | #if MAX96715_MODE_SWITCH |
---|
209 | | - if (maxim4c->hot_plug_irq > 0) |
---|
210 | | - disable_irq(maxim4c->hot_plug_irq); |
---|
211 | | - |
---|
212 | 208 | ret = max96715_link_mode_select(max96715, LINK_MODE_CONFIG); |
---|
213 | | - if (ret) { |
---|
214 | | - if (maxim4c->hot_plug_irq > 0) |
---|
215 | | - enable_irq(maxim4c->hot_plug_irq); |
---|
216 | | - |
---|
| 209 | + if (ret) |
---|
217 | 210 | return ret; |
---|
218 | | - } |
---|
219 | 211 | #endif |
---|
220 | 212 | |
---|
221 | 213 | ret = maxim4c_i2c_run_init_seq(client, |
---|
.. | .. |
---|
225 | 217 | dev_err(dev, "remote id = %d init sequence error\n", |
---|
226 | 218 | max96715->remote_id); |
---|
227 | 219 | |
---|
228 | | - if (maxim4c->hot_plug_irq > 0) |
---|
229 | | - enable_irq(maxim4c->hot_plug_irq); |
---|
230 | | - |
---|
231 | 220 | return ret; |
---|
232 | 221 | } |
---|
233 | 222 | |
---|
234 | 223 | #if MAX96715_MODE_SWITCH |
---|
235 | 224 | ret = max96715_link_mode_select(max96715, LINK_MODE_VIDEO); |
---|
236 | | - if (maxim4c->hot_plug_irq > 0) |
---|
237 | | - enable_irq(maxim4c->hot_plug_irq); |
---|
238 | 225 | if (ret) |
---|
239 | 226 | return ret; |
---|
240 | 227 | #endif |
---|
.. | .. |
---|
388 | 375 | .probe = max96715_probe, |
---|
389 | 376 | .remove = max96715_remove, |
---|
390 | 377 | .driver = { |
---|
391 | | - .name = "max96715", |
---|
| 378 | + .name = "maxim4c-max96715", |
---|
392 | 379 | .of_match_table = max96715_of_table, |
---|
393 | 380 | }, |
---|
394 | 381 | }; |
---|