From: Kieran Bingham <kieran.bingham@ideasonboard.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Kieran Bingham <kieran.bingham@ideasonboard.com>,
Jean-Michel Hautbois <jean-michel.hautbois@vodalys.com>,
Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>,
Archit Taneja <architt@codeaurora.org>,
Andrzej Hajda <a.hajda@samsung.com>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
David Airlie <airlied@linux.ie>,
Hans Verkuil <hverkuil@xs4all.nl>,
Lars-Peter Clausen <lars@metafoo.de>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
Bhumika Goyal <bhumirks@gmail.com>,
Inki Dae <inki.dae@samsung.com>
Subject: Re: [PATCH v2 5/5] drm: adv7511: Add support for i2c_new_secondary_device
Date: Tue, 13 Feb 2018 13:09:22 +0000 [thread overview]
Message-ID: <320a656e-23eb-7aaa-bb8a-b7e542e60c9e@ideasonboard.com> (raw)
In-Reply-To: <20180213072302.wlrqf5zgr7q26rsr@mwanda>
Hi Dan
Thank you for the review,
On 13/02/18 07:23, Dan Carpenter wrote:
> On Mon, Feb 12, 2018 at 06:11:57PM +0000, Kieran Bingham wrote:
>> + adv7511->i2c_packet = i2c_new_secondary_device(i2c, "packet",
>> + ADV7511_PACKET_I2C_ADDR_DEFAULT);
>> + if (!adv7511->i2c_packet) {
>> + ret = -EINVAL;
>> + goto err_unregister_cec;
>> + }
>> +
>> + regmap_write(adv7511->regmap, ADV7511_REG_PACKET_I2C_ADDR,
>> + adv7511->i2c_packet->addr << 1);
>> +
>> INIT_WORK(&adv7511->hpd_work, adv7511_hpd_work);
>>
>> if (i2c->irq) {
>> @@ -1181,7 +1190,7 @@ static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
>> IRQF_ONESHOT, dev_name(dev),
>> adv7511);
>> if (ret)
>> - goto err_unregister_cec;
>> + goto err_unregister_packet;
>> }
>>
>> adv7511_power_off(adv7511);
>
> There is another goto which needs to be updated if adv7511_cec_init()
> fails.
Aha - thanks - I'll look into this now.
>
>> @@ -1203,6 +1212,8 @@ static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
>> adv7511_audio_init(dev, adv7511);
>> return 0;
>>
>> +err_unregister_packet:
>> + i2c_unregister_device(adv7511->i2c_packet);
>> err_unregister_cec:
>> i2c_unregister_device(adv7511->i2c_cec);
>> if (adv7511->cec_clk)
>
>
> regards,
> dan carpenter
>
prev parent reply other threads:[~2018-02-13 13:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-12 18:11 [PATCH v2 0/5] " Kieran Bingham
2018-02-12 18:11 ` [PATCH v2 1/5] dt-bindings: media: adv7604: " Kieran Bingham
2018-02-12 18:11 ` [PATCH v2 2/5] dt-bindings: adv7511: " Kieran Bingham
2018-02-12 18:11 ` [PATCH v2 3/5] [RFT] ARM: dts: wheat: Fix ADV7513 address usage Kieran Bingham
2018-02-12 18:24 ` Lars-Peter Clausen
2018-02-12 18:30 ` Kieran Bingham
2018-02-14 1:04 ` kbuild test robot
2018-02-12 18:11 ` [PATCH v2 4/5] media: adv7604: Add support for i2c_new_secondary_device Kieran Bingham
2018-02-12 18:11 ` [PATCH v2 5/5] drm: adv7511: " Kieran Bingham
2018-02-13 7:23 ` Dan Carpenter
2018-02-13 13:09 ` Kieran Bingham [this message]
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=320a656e-23eb-7aaa-bb8a-b7e542e60c9e@ideasonboard.com \
--to=kieran.bingham@ideasonboard.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=a.hajda@samsung.com \
--cc=airlied@linux.ie \
--cc=architt@codeaurora.org \
--cc=bhumirks@gmail.com \
--cc=dan.carpenter@oracle.com \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=hverkuil@xs4all.nl \
--cc=inki.dae@samsung.com \
--cc=jean-michel.hautbois@vodalys.com \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=sergei.shtylyov@cogentembedded.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
Powered by JetHome