Message ID | 1348754853-28619-10-git-send-email-g.liakhovetski@gmx.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/i2c/soc_camera/mt9t112.c b/drivers/media/i2c/soc_camera/mt9t112.c index dfa03f0..9e0837c 100644 --- a/drivers/media/i2c/soc_camera/mt9t112.c +++ b/drivers/media/i2c/soc_camera/mt9t112.c @@ -1094,7 +1094,10 @@ static int mt9t112_probe(struct i2c_client *client, }; int ret; - if (!icl || !icl->priv) { + if (!icl) + return -EPROBE_DEFER; + + if (!icl->priv) { dev_err(&client->dev, "mt9t112: missing platform data!\n"); return -EINVAL; }
If .probe() is called without our private data, this might mean, that the host driver hasn't probed yet. Defer probing in this case. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> --- drivers/media/i2c/soc_camera/mt9t112.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)