mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Axel Lin <axel.lin@ingics.com>
Cc: Keerthy <j-keerthy@ti.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd: lp87565: Convert to use devm_mfd_add_devices
Date: Tue, 8 Aug 2017 11:03:04 +0100	[thread overview]
Message-ID: <20170808100304.fdiu35jzx5jbv5eb@dell> (raw)
In-Reply-To: <20170730105815.26728-1-axel.lin@ingics.com>

On Sun, 30 Jul 2017, Axel Lin wrote:

> This fixes missing mfd_remove_devices() call when unload the module.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/mfd/lp87565.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/lp87565.c b/drivers/mfd/lp87565.c
> index 340ad0c..32d2a07 100644
> --- a/drivers/mfd/lp87565.c
> +++ b/drivers/mfd/lp87565.c
> @@ -73,10 +73,9 @@ static int lp87565_probe(struct i2c_client *client,
>  
>  	i2c_set_clientdata(client, lp87565);
>  
> -	ret = mfd_add_devices(lp87565->dev, PLATFORM_DEVID_AUTO, lp87565_cells,
> -			      ARRAY_SIZE(lp87565_cells), NULL, 0, NULL);
> -
> -	return ret;
> +	return devm_mfd_add_devices(lp87565->dev, PLATFORM_DEVID_AUTO,
> +				    lp87565_cells, ARRAY_SIZE(lp87565_cells),
> +				    NULL, 0, NULL);
>  }
>  
>  static const struct i2c_device_id lp87565_id_table[] = {

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

      parent reply	other threads:[~2017-08-08 10:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-30 10:58 Axel Lin
2017-07-31  4:15 ` Keerthy
2017-08-08 10:03 ` Lee Jones [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=20170808100304.fdiu35jzx5jbv5eb@dell \
    --to=lee.jones@linaro.org \
    --cc=axel.lin@ingics.com \
    --cc=j-keerthy@ti.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®