From: Josh Wu <josh.wu@atmel.com>
To: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Cc: <g.liakhovetski@gmx.de>, <m.chehab@samsung.com>,
<linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] [media] ov2640: add support for async device registration
Date: Wed, 19 Mar 2014 17:17:08 +0800 [thread overview]
Message-ID: <53296094.3060209@atmel.com> (raw)
In-Reply-To: <532371F4.9050509@gmail.com>
Hi, Sylwester
Thanks for your review.
On 3/15/2014 5:17 AM, Sylwester Nawrocki wrote:
> Hi Josh,
>
> On 03/14/2014 11:12 AM, Josh Wu wrote:
>> + clk = v4l2_clk_get(&client->dev, "mclk");
>> + if (IS_ERR(clk))
>> + return -EPROBE_DEFER;
>
> You should instead make it:
>
> return PTR_ERR(clk);
>
> But you will need this patch for that to work:
> http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/clk/clk.c?id=a34cd4666f3da84228a82f70c94b8d9b692034ea
>
>
> With this patch there is no need to overwrite any returned error
> value with EPROBE_DEFER.
Thanks for the information. I will use this in v2 version.
Best Regards,
Josh Wu
>
>> @@ -1097,23 +1106,26 @@ static int ov2640_probe(struct i2c_client
>> *client,
>> v4l2_ctrl_new_std(&priv->hdl,&ov2640_ctrl_ops,
>> V4L2_CID_HFLIP, 0, 1, 1, 0);
>> priv->subdev.ctrl_handler =&priv->hdl;
>> - if (priv->hdl.error)
>> - return priv->hdl.error;
>> -
>> - priv->clk = v4l2_clk_get(&client->dev, "mclk");
>> - if (IS_ERR(priv->clk)) {
>> - ret = PTR_ERR(priv->clk);
>> - goto eclkget;
>
> --
> Regards,
> Sylwester
next prev parent reply other threads:[~2014-03-19 9:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 10:12 [PATCH] [media] ov2640: add support for async device registration Josh Wu
2014-03-14 21:17 ` Sylwester Nawrocki
2014-03-19 9:17 ` Josh Wu [this message]
2014-03-20 14:44 ` Sylwester Nawrocki
2014-03-26 6:20 ` Josh Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53296094.3060209@atmel.com \
--to=josh.wu@atmel.com \
--cc=g.liakhovetski@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
--cc=sylvester.nawrocki@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).