Re: [PATCH 2/4] pwm: atmel-tcb: Add .owner to struct pwm_ops

2013-04-02 Thread Boris BREZILLON

On 31/03/2013 05:15, 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 


Acked-by: Boris BREZILLON 


---
  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)



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 2/4] pwm: atmel-tcb: Add .owner to struct pwm_ops

2013-04-02 Thread Boris BREZILLON

On 31/03/2013 05:15, 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@ingics.com


Acked-by: Boris BREZILLON linux-...@overkiz.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)



--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/