Hi, On Wed, Aug 31, 2016 at 10:42:03AM +0300, Sakari Ailus wrote: > The clock may be provided by a driver which is yet to probe. This probably fixes N950 with built-in drivers, where I could see smiapp fails due to missing clk. I have not yet further anaylsed it, since more important parts like display output are also not yet working. > Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> > --- > drivers/media/i2c/smiapp/smiapp-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c > index 92a6859..aaf5299 100644 > --- a/drivers/media/i2c/smiapp/smiapp-core.c > +++ b/drivers/media/i2c/smiapp/smiapp-core.c > @@ -2558,7 +2558,7 @@ static int smiapp_init(struct smiapp_sensor *sensor) > sensor->ext_clk = devm_clk_get(&client->dev, NULL); > if (IS_ERR(sensor->ext_clk)) { > dev_err(&client->dev, "could not get clock\n"); > - return PTR_ERR(sensor->ext_clk); > + return -EPROBE_DEFER; > } > > rval = clk_set_rate(sensor->ext_clk, With the error being rewritten to EPROBE_DEFER, the actual error number should be part of the error message: dev_err(&client->dev, "could not get clock (%d)\n", PTR_ERR(sensor->ext_clk)); -- Sebastian
Attachment:
signature.asc
Description: PGP signature