OMAPDSS: TFP410: return EPROBE_DEFER if the i2c adapter not found
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>
This commit is contained in:
parent
6aa66f5c01
commit
bca3913034
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ static int tfp410_probe(struct omap_dss_device *dssdev)
|
||||||
if (!adapter) {
|
if (!adapter) {
|
||||||
dev_err(&dssdev->dev, "Failed to get I2C adapter, bus %d\n",
|
dev_err(&dssdev->dev, "Failed to get I2C adapter, bus %d\n",
|
||||||
i2c_bus_num);
|
i2c_bus_num);
|
||||||
return -EINVAL;
|
return -EPROBE_DEFER;
|
||||||
}
|
}
|
||||||
|
|
||||||
ddata->i2c_adapter = adapter;
|
ddata->i2c_adapter = adapter;
|
||||||
|
|
Loading…
Add table
Reference in a new issue