From: mkl@pengutronix.de (Marc Kleine-Budde)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3] ARM/mx35/3ds: gpio: add mc9s08dz60 gpio function
Date: Wed, 09 Nov 2011 20:31:53 +0100 [thread overview]
Message-ID: <4EBAD529.1010608@pengutronix.de> (raw)
In-Reply-To: <CAOMZO5Af9XCB8OGGJo0Hb-Bhhv_R==cS-D3jeC-NKvzbANbMyw@mail.gmail.com>
On 11/09/2011 05:51 PM, Fabio Estevam wrote:
> On Wed, Nov 9, 2011 at 1:46 PM, Marc Kleine-Budde <mkl@pengutronix.de> wrote:
>>> +static int mc9s08dz60_remove(struct i2c_client *client)
>>> +{
>>> + struct mc9s08dz60 *mc9s;
>>> + int ret;
>>> +
>>> + mc9s = i2c_get_clientdata(client);
>>> +
>>> + i2c_set_clientdata(client, NULL);
>>> +
>>> + ret = gpiochip_remove(&mc9s->chip);
>>> + if (!ret)
>>> + kfree(mc9s);
>>> +
>>> + return 0;
>>
>> return 0 if gpiochip_remove() fails?
>
> See Russell's comment about returning error on this remove function:
> http://www.spinics.net/lists/arm-kernel/msg146501.html
tnx for the hint - I must have missed that comment.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20111109/76e79ff8/attachment.sig>
next prev parent reply other threads:[~2011-11-09 19:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-04 10:12 [PATCH v3] ARM/mx35/3ds: gpio: add mc9s08dz60 gpio function wu guoxing
2011-11-08 15:04 ` Sascha Hauer
2011-11-09 15:46 ` Marc Kleine-Budde
2011-11-09 16:51 ` Fabio Estevam
2011-11-09 19:31 ` Marc Kleine-Budde [this message]
2011-11-09 18:19 ` Sascha Hauer
2011-11-10 3:15 ` Wu Guoxing-B39297
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=4EBAD529.1010608@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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).