Skip to content

Commit

Permalink
OMAPDSS: TFP410: return EPROBE_DEFER if the i2c adapter not found
Browse files Browse the repository at this point in the history
If the I2C adapter needed by the TFP410 device is not available yet,
return EPROBE_DEFER so that the device will get probed again.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed May 2, 2013
1 parent 6aa66f5 commit bca3913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/omap2/displays/panel-tfp410.c
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ static int tfp410_probe(struct omap_dss_device *dssdev)
if (!adapter) {
dev_err(&dssdev->dev, "Failed to get I2C adapter, bus %d\n",
i2c_bus_num);
return -EINVAL;
return -EPROBE_DEFER;
}

ddata->i2c_adapter = adapter;

0 comments on commit bca3913

Please sign in to comment.