From: Dan Carpenter <dan.carpenter@oracle.com>
To: Kieran Bingham <kbingham@kernel.org>
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 10:23:02 +0300 [thread overview]
Message-ID: <20180213072302.wlrqf5zgr7q26rsr@mwanda> (raw)
In-Reply-To: <1518459117-16733-6-git-send-email-kbingham@kernel.org>
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.
> @@ -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
next prev parent reply other threads:[~2018-02-13 7:23 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 [this message]
2018-02-13 13:09 ` Kieran Bingham
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=20180213072302.wlrqf5zgr7q26rsr@mwanda \
--to=dan.carpenter@oracle.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=a.hajda@samsung.com \
--cc=airlied@linux.ie \
--cc=architt@codeaurora.org \
--cc=bhumirks@gmail.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=kbingham@kernel.org \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=kieran.bingham@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
all inboxes | Powered by JetHome®