diff options
-rw-r--r-- | drivers/video/fbdev/omap2/displays-new/connector-dvi.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/video/fbdev/omap2/displays-new/connector-dvi.c b/drivers/video/fbdev/omap2/displays-new/connector-dvi.c index 2dfb6e5ff0cc..3d38e478bc64 100644 --- a/drivers/video/fbdev/omap2/displays-new/connector-dvi.c +++ b/drivers/video/fbdev/omap2/displays-new/connector-dvi.c | |||
@@ -262,8 +262,7 @@ static int dvic_probe_pdata(struct platform_device *pdev) | |||
262 | 262 | ||
263 | in = omap_dss_find_output(pdata->source); | 263 | in = omap_dss_find_output(pdata->source); |
264 | if (in == NULL) { | 264 | if (in == NULL) { |
265 | if (ddata->i2c_adapter) | 265 | i2c_put_adapter(ddata->i2c_adapter); |
266 | i2c_put_adapter(ddata->i2c_adapter); | ||
267 | 266 | ||
268 | dev_err(&pdev->dev, "Failed to find video source\n"); | 267 | dev_err(&pdev->dev, "Failed to find video source\n"); |
269 | return -EPROBE_DEFER; | 268 | return -EPROBE_DEFER; |
@@ -352,8 +351,7 @@ static int dvic_probe(struct platform_device *pdev) | |||
352 | err_reg: | 351 | err_reg: |
353 | omap_dss_put_device(ddata->in); | 352 | omap_dss_put_device(ddata->in); |
354 | 353 | ||
355 | if (ddata->i2c_adapter) | 354 | i2c_put_adapter(ddata->i2c_adapter); |
356 | i2c_put_adapter(ddata->i2c_adapter); | ||
357 | 355 | ||
358 | return r; | 356 | return r; |
359 | } | 357 | } |
@@ -371,8 +369,7 @@ static int __exit dvic_remove(struct platform_device *pdev) | |||
371 | 369 | ||
372 | omap_dss_put_device(in); | 370 | omap_dss_put_device(in); |
373 | 371 | ||
374 | if (ddata->i2c_adapter) | 372 | i2c_put_adapter(ddata->i2c_adapter); |
375 | i2c_put_adapter(ddata->i2c_adapter); | ||
376 | 373 | ||
377 | return 0; | 374 | return 0; |
378 | } | 375 | } |