All of lore.kernel.org
 help / color / mirror / Atom feed
From: Axel Lin <axel.lin@ingics.com>
To: Thierry Reding <thierry.reding@avionic-design.de>
Cc: Boris BREZILLON <linux-arm@overkiz.com>, linux-kernel@vger.kernel.org
Subject: [PATCH 2/4] pwm: atmel-tcb: Add .owner to struct pwm_ops
Date: Sun, 31 Mar 2013 11:15:15 +0800	[thread overview]
Message-ID: <1364699715.7876.3.camel@phoenix> (raw)
In-Reply-To: <1364699642.7876.1.camel@phoenix>

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>
---
 drivers/pwm/pwm-atmel-tcb.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm-atmel-tcb.c
index 16cb530..0a7b658 100644
--- a/drivers/pwm/pwm-atmel-tcb.c
+++ b/drivers/pwm/pwm-atmel-tcb.c
@@ -358,6 +358,7 @@ static const struct pwm_ops atmel_tcb_pwm_ops = {
 	.set_polarity = atmel_tcb_pwm_set_polarity,
 	.enable = atmel_tcb_pwm_enable,
 	.disable = atmel_tcb_pwm_disable,
+	.owner = THIS_MODULE,
 };
 
 static int atmel_tcb_pwm_probe(struct platform_device *pdev)
-- 
1.7.10.4




  reply	other threads:[~2013-03-31  3: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 ` Axel Lin [this message]
2013-04-02 16:25   ` [PATCH 2/4] pwm: atmel-tcb: " Boris BREZILLON
2013-03-31  3:16 ` [PATCH 3/4] pwm: twl-led: " Axel Lin
2013-04-02  7:15   ` Peter Ujfalusi
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=1364699715.7876.3.camel@phoenix \
    --to=axel.lin@ingics.com \
    --cc=linux-arm@overkiz.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 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.