public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Axel Lin <axel.lin@ingics.com>
Cc: Thierry Reding <thierry.reding@avionic-design.de>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/4] pwm: twl-led: Add .owner to struct pwm_ops
Date: Tue, 2 Apr 2013 09:15:12 +0200	[thread overview]
Message-ID: <515A8580.4020001@ti.com> (raw)
In-Reply-To: <1364699774.7876.4.camel@phoenix>

On 03/31/2013 05:16 AM, Axel Lin wrote:
> Add missing .owner of struct pwm_ops. This prevents the module from being
> removed from underneath its users.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

> ---
>  drivers/pwm/pwm-twl-led.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/pwm/pwm-twl-led.c b/drivers/pwm/pwm-twl-led.c
> index 83e25d4..f912e87 100644
> --- a/drivers/pwm/pwm-twl-led.c
> +++ b/drivers/pwm/pwm-twl-led.c
> @@ -271,6 +271,7 @@ static const struct pwm_ops twl4030_pwmled_ops = {
>  	.enable = twl4030_pwmled_enable,
>  	.disable = twl4030_pwmled_disable,
>  	.config = twl4030_pwmled_config,
> +	.owner = THIS_MODULE,
>  };
>  
>  static const struct pwm_ops twl6030_pwmled_ops = {
> @@ -279,6 +280,7 @@ static const struct pwm_ops twl6030_pwmled_ops = {
>  	.config = twl6030_pwmled_config,
>  	.request = twl6030_pwmled_request,
>  	.free = twl6030_pwmled_free,
> +	.owner = THIS_MODULE,
>  };
>  
>  static int twl_pwmled_probe(struct platform_device *pdev)
> 


-- 
Péter

  reply	other threads:[~2013-04-02  7:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-31  3:14 [PATCH 1/4] pwm: ab8500: Add .owner to struct pwm_ops Axel Lin
2013-03-31  3:15 ` [PATCH 2/4] pwm: atmel-tcb: " Axel Lin
2013-04-02 16:25   ` Boris BREZILLON
2013-03-31  3:16 ` [PATCH 3/4] pwm: twl-led: " Axel Lin
2013-04-02  7:15   ` Peter Ujfalusi [this message]
2013-03-31  3:17 ` [PATCH 4/4] pwm: twl: " Axel Lin
2013-04-02  7:15   ` Peter Ujfalusi
2013-04-02  9:36 ` [PATCH 1/4] pwm: ab8500: " Thierry Reding

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=515A8580.4020001@ti.com \
    --to=peter.ujfalusi@ti.com \
    --cc=axel.lin@ingics.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thierry.reding@avionic-design.de \
    /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