From: Lars-Peter Clausen <lars@metafoo.de>
To: Denis CIOCCA <denis.ciocca@st.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH 1/4] iio:accel: call devm_iio_device_free function if common_proble fails
Date: Fri, 14 Feb 2014 17:11:55 +0100 [thread overview]
Message-ID: <52FE404B.3050307@metafoo.de> (raw)
In-Reply-To: <1392391005-2719-2-git-send-email-denis.ciocca@st.com>
On 02/14/2014 04:16 PM, Denis CIOCCA wrote:
> If st_accel_common_probe function fails, the device must be freed.
> Added devm_iio_device_free also on common_remove function.
When the device is allocated with devm_iio_device... you do not need to
manually free the device. If probe fails the device will be freed automatically.
- Lars
next prev parent reply other threads:[~2014-02-14 16:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 15:16 use devm_iio_device_free on common probe failed and remove Denis CIOCCA
2014-02-14 15:16 ` [PATCH 1/4] iio:accel: call devm_iio_device_free function if common_proble fails Denis CIOCCA
2014-02-14 16:11 ` Lars-Peter Clausen [this message]
2014-02-15 9:47 ` Jonathan Cameron
2014-02-14 15:16 ` [PATCH 2/4] iio:gyro: " Denis CIOCCA
2014-02-14 15:16 ` [PATCH 3/4] iio:magnetometer: " Denis CIOCCA
2014-02-14 15:16 ` [PATCH 4/4] iio:pressure: " Denis CIOCCA
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=52FE404B.3050307@metafoo.de \
--to=lars@metafoo.de \
--cc=denis.ciocca@st.com \
--cc=linux-iio@vger.kernel.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).