From: Jonathan Cameron <jic23@kernel.org>
To: Shubhrajyoti D <shubhrajyoti@ti.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH 1/2] iio: hmc5843: Make it behave better as modules
Date: Wed, 30 May 2012 20:21:27 +0100 [thread overview]
Message-ID: <4FC67337.4020400@kernel.org> (raw)
In-Reply-To: <1338217921-23174-1-git-send-email-shubhrajyoti@ti.com>
On 05/28/2012 04:12 PM, Shubhrajyoti D wrote:
> The memory regions of the probe and remove are move
> to __devinit and __devexit respectively.
>
Please send on to Greg KH.
> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
> ---
> drivers/staging/iio/magnetometer/hmc5843.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/iio/magnetometer/hmc5843.c b/drivers/staging/iio/magnetometer/hmc5843.c
> index c1fa09f..6c3e50f 100644
> --- a/drivers/staging/iio/magnetometer/hmc5843.c
> +++ b/drivers/staging/iio/magnetometer/hmc5843.c
> @@ -665,7 +665,7 @@ static const struct iio_info hmc5843_info = {
> .driver_module = THIS_MODULE,
> };
>
> -static int hmc5843_probe(struct i2c_client *client,
> +static int __devinit hmc5843_probe(struct i2c_client *client,
> const struct i2c_device_id *id)
> {
> struct hmc5843_data *data;
> @@ -704,7 +704,7 @@ exit:
> return err;
> }
>
> -static int hmc5843_remove(struct i2c_client *client)
> +static int __devexit hmc5843_remove(struct i2c_client *client)
> {
> struct iio_dev *indio_dev = i2c_get_clientdata(client);
>
> @@ -755,7 +755,7 @@ static struct i2c_driver hmc5843_driver = {
> },
> .id_table = hmc5843_id,
> .probe = hmc5843_probe,
> - .remove = hmc5843_remove,
> + .remove = __devexit_p(hmc5843_remove),
> .detect = hmc5843_detect,
> .address_list = normal_i2c,
> };
next prev parent reply other threads:[~2012-05-30 18:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-28 15:12 [PATCH 1/2] iio: hmc5843: Make it behave better as modules Shubhrajyoti D
2012-05-28 15:12 ` [PATCH 2/2] iio: ak8975: " Shubhrajyoti D
2012-05-30 19:22 ` Jonathan Cameron
2012-05-30 19:21 ` Jonathan Cameron [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-04 9:41 [PATCH 1/2] iio: hmc5843: " Shubhrajyoti D
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=4FC67337.4020400@kernel.org \
--to=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=shubhrajyoti@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.