From: Tomi Valkeinen Date: Mon, 29 Apr 2013 10:08:32 +0000 (+0300) Subject: OMAPDSS: TFP410: return EPROBE_DEFER if the i2c adapter not found X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bca3913034ef99c9cc028d054273a3b271ed62b9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/video/omap2/displays/panel-tfp410.c b/drivers/video/omap2/displays/panel-tfp410.c index a1dba868cef1..46039c4bf1ed 100644 --- a/drivers/video/omap2/displays/panel-tfp410.c +++ b/drivers/video/omap2/displays/panel-tfp410.c @@ -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;