All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch v2 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module
@ 2013-11-27 10:05 ` Bo Shen
  0 siblings, 0 replies; 19+ messages in thread
From: Bo Shen @ 2013-11-27 10:05 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, richard.genoud, nicolas.ferre, linux-sound, Bo Shen,
	plagnioj, linux-arm-kernel

As the priv is not assigned to card->drvdata, it is NULL, so when
unload module, it will cause NULL pointer oops.
Assign priv to card->drvdata to fix this issue.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Change in v2: 
  - using snd_soc_card_set_drvdata()
---
 sound/soc/atmel/sam9x5_wm8731.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 992ae38..1b37228 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -97,6 +97,8 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
 		goto out;
 	}
 
+	snd_soc_card_set_drvdata(card, priv);
+
 	card->dev = &pdev->dev;
 	card->owner = THIS_MODULE;
 	card->dai_link = dai;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Patch v2 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module
@ 2013-11-27 10:05 ` Bo Shen
  0 siblings, 0 replies; 19+ messages in thread
From: Bo Shen @ 2013-11-27 10:05 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, richard.genoud, nicolas.ferre, linux-sound, Bo Shen,
	plagnioj, linux-arm-kernel

As the priv is not assigned to card->drvdata, it is NULL, so when
unload module, it will cause NULL pointer oops.
Assign priv to card->drvdata to fix this issue.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Change in v2: 
  - using snd_soc_card_set_drvdata()
---
 sound/soc/atmel/sam9x5_wm8731.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 992ae38..1b37228 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -97,6 +97,8 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
 		goto out;
 	}
 
+	snd_soc_card_set_drvdata(card, priv);
+
 	card->dev = &pdev->dev;
 	card->owner = THIS_MODULE;
 	card->dai_link = dai;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Patch v2 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module
@ 2013-11-27 10:05 ` Bo Shen
  0 siblings, 0 replies; 19+ messages in thread
From: Bo Shen @ 2013-11-27 10:05 UTC (permalink / raw)
  To: linux-arm-kernel

As the priv is not assigned to card->drvdata, it is NULL, so when
unload module, it will cause NULL pointer oops.
Assign priv to card->drvdata to fix this issue.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Change in v2: 
  - using snd_soc_card_set_drvdata()
---
 sound/soc/atmel/sam9x5_wm8731.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 992ae38..1b37228 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -97,6 +97,8 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
 		goto out;
 	}
 
+	snd_soc_card_set_drvdata(card, priv);
+
 	card->dev = &pdev->dev;
 	card->owner = THIS_MODULE;
 	card->dai_link = dai;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
  2013-11-27 10:05 ` Bo Shen
  (?)
@ 2013-11-27 10:05   ` Bo Shen
  -1 siblings, 0 replies; 19+ messages in thread
From: Bo Shen @ 2013-11-27 10:05 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, richard.genoud, nicolas.ferre, linux-sound, Bo Shen,
	plagnioj, linux-arm-kernel

When call snd_soc_register_card, it will set driver data to this
device through dev_set_drvdata, then in driver, no need to call
platform_set_drvdata again, so remove it.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Change in v2:
  - NONE
---
 sound/soc/atmel/sam9x5_wm8731.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 1b37228..ce9cd29 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
 	of_node_put(codec_np);
 	of_node_put(cpu_np);
 
-	platform_set_drvdata(pdev, card);
-
 	ret = snd_soc_register_card(card);
 	if (ret) {
 		dev_err(&pdev->dev,
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
@ 2013-11-27 10:05   ` Bo Shen
  0 siblings, 0 replies; 19+ messages in thread
From: Bo Shen @ 2013-11-27 10:05 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, richard.genoud, nicolas.ferre, linux-sound, Bo Shen,
	plagnioj, linux-arm-kernel

When call snd_soc_register_card, it will set driver data to this
device through dev_set_drvdata, then in driver, no need to call
platform_set_drvdata again, so remove it.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Change in v2:
  - NONE
---
 sound/soc/atmel/sam9x5_wm8731.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 1b37228..ce9cd29 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
 	of_node_put(codec_np);
 	of_node_put(cpu_np);
 
-	platform_set_drvdata(pdev, card);
-
 	ret = snd_soc_register_card(card);
 	if (ret) {
 		dev_err(&pdev->dev,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
@ 2013-11-27 10:05   ` Bo Shen
  0 siblings, 0 replies; 19+ messages in thread
From: Bo Shen @ 2013-11-27 10:05 UTC (permalink / raw)
  To: linux-arm-kernel

When call snd_soc_register_card, it will set driver data to this
device through dev_set_drvdata, then in driver, no need to call
platform_set_drvdata again, so remove it.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Change in v2:
  - NONE
---
 sound/soc/atmel/sam9x5_wm8731.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 1b37228..ce9cd29 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
 	of_node_put(codec_np);
 	of_node_put(cpu_np);
 
-	platform_set_drvdata(pdev, card);
-
 	ret = snd_soc_register_card(card);
 	if (ret) {
 		dev_err(&pdev->dev,
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [Patch v2 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module
  2013-11-27 10:05 ` Bo Shen
@ 2013-11-27 15:50   ` Mark Brown
  -1 siblings, 0 replies; 19+ messages in thread
From: Mark Brown @ 2013-11-27 15:50 UTC (permalink / raw)
  To: Bo Shen
  Cc: nicolas.ferre, plagnioj, richard.genoud, linux-sound, alsa-devel,
	linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

On Wed, Nov 27, 2013 at 06:05:09PM +0800, Bo Shen wrote:
> As the priv is not assigned to card->drvdata, it is NULL, so when
> unload module, it will cause NULL pointer oops.
> Assign priv to card->drvdata to fix this issue.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Patch v2 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module
@ 2013-11-27 15:50   ` Mark Brown
  0 siblings, 0 replies; 19+ messages in thread
From: Mark Brown @ 2013-11-27 15:50 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Nov 27, 2013 at 06:05:09PM +0800, Bo Shen wrote:
> As the priv is not assigned to card->drvdata, it is NULL, so when
> unload module, it will cause NULL pointer oops.
> Assign priv to card->drvdata to fix this issue.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131127/4222d259/attachment.sig>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
  2013-11-27 10:05   ` Bo Shen
  (?)
@ 2013-12-09 10:20     ` Nicolas Ferre
  -1 siblings, 0 replies; 19+ messages in thread
From: Nicolas Ferre @ 2013-12-09 10:20 UTC (permalink / raw)
  To: Bo Shen, broonie, alsa-devel
  Cc: plagnioj, richard.genoud, linux-sound, linux-arm-kernel

On 27/11/2013 11:05, Bo Shen :
> When call snd_soc_register_card, it will set driver data to this
> device through dev_set_drvdata, then in driver, no need to call
> platform_set_drvdata again, so remove it.
>
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
> ---
> Change in v2:
>    - NONE

Hi Mark,

It seems that this patch has not been applied to your "next" branch (aka 
ping)...

BTW, it seems that we also collected this tag:
Tested-by: Richard Genoud <richard.genoud@gmail.com>

Bye,

> ---
>   sound/soc/atmel/sam9x5_wm8731.c |    2 --
>   1 file changed, 2 deletions(-)
>
> diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
> index 1b37228..ce9cd29 100644
> --- a/sound/soc/atmel/sam9x5_wm8731.c
> +++ b/sound/soc/atmel/sam9x5_wm8731.c
> @@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
>   	of_node_put(codec_np);
>   	of_node_put(cpu_np);
>
> -	platform_set_drvdata(pdev, card);
> -
>   	ret = snd_soc_register_card(card);
>   	if (ret) {
>   		dev_err(&pdev->dev,
>


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
@ 2013-12-09 10:20     ` Nicolas Ferre
  0 siblings, 0 replies; 19+ messages in thread
From: Nicolas Ferre @ 2013-12-09 10:20 UTC (permalink / raw)
  To: Bo Shen, broonie, alsa-devel
  Cc: plagnioj, richard.genoud, linux-sound, linux-arm-kernel

On 27/11/2013 11:05, Bo Shen :
> When call snd_soc_register_card, it will set driver data to this
> device through dev_set_drvdata, then in driver, no need to call
> platform_set_drvdata again, so remove it.
>
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
> ---
> Change in v2:
>    - NONE

Hi Mark,

It seems that this patch has not been applied to your "next" branch (aka 
ping)...

BTW, it seems that we also collected this tag:
Tested-by: Richard Genoud <richard.genoud@gmail.com>

Bye,

> ---
>   sound/soc/atmel/sam9x5_wm8731.c |    2 --
>   1 file changed, 2 deletions(-)
>
> diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
> index 1b37228..ce9cd29 100644
> --- a/sound/soc/atmel/sam9x5_wm8731.c
> +++ b/sound/soc/atmel/sam9x5_wm8731.c
> @@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
>   	of_node_put(codec_np);
>   	of_node_put(cpu_np);
>
> -	platform_set_drvdata(pdev, card);
> -
>   	ret = snd_soc_register_card(card);
>   	if (ret) {
>   		dev_err(&pdev->dev,
>


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
@ 2013-12-09 10:20     ` Nicolas Ferre
  0 siblings, 0 replies; 19+ messages in thread
From: Nicolas Ferre @ 2013-12-09 10:20 UTC (permalink / raw)
  To: linux-arm-kernel

On 27/11/2013 11:05, Bo Shen :
> When call snd_soc_register_card, it will set driver data to this
> device through dev_set_drvdata, then in driver, no need to call
> platform_set_drvdata again, so remove it.
>
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
> ---
> Change in v2:
>    - NONE

Hi Mark,

It seems that this patch has not been applied to your "next" branch (aka 
ping)...

BTW, it seems that we also collected this tag:
Tested-by: Richard Genoud <richard.genoud@gmail.com>

Bye,

> ---
>   sound/soc/atmel/sam9x5_wm8731.c |    2 --
>   1 file changed, 2 deletions(-)
>
> diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
> index 1b37228..ce9cd29 100644
> --- a/sound/soc/atmel/sam9x5_wm8731.c
> +++ b/sound/soc/atmel/sam9x5_wm8731.c
> @@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
>   	of_node_put(codec_np);
>   	of_node_put(cpu_np);
>
> -	platform_set_drvdata(pdev, card);
> -
>   	ret = snd_soc_register_card(card);
>   	if (ret) {
>   		dev_err(&pdev->dev,
>


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
  2013-12-09 10:20     ` Nicolas Ferre
  (?)
@ 2013-12-09 16:58       ` Mark Brown
  -1 siblings, 0 replies; 19+ messages in thread
From: Mark Brown @ 2013-12-09 16:58 UTC (permalink / raw)
  To: Nicolas Ferre
  Cc: alsa-devel, richard.genoud, linux-sound, Bo Shen, plagnioj,
	linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 721 bytes --]

On Mon, Dec 09, 2013 at 11:20:05AM +0100, Nicolas Ferre wrote:

> It seems that this patch has not been applied to your "next" branch
> (aka ping)...

If you think something has been forgotten please resend.  If it's
genuinely been lost it's going to need resending and the mail just leads
to more mails, a resend can be directly applied.  I had thought I'd
replied to this at the time but it seems I didn't, or at least I can't
see my reply on the list...  sorry about that.

The question was if we should change this or if we should change the
core to not overwrite something that probably ought to be the driver's
domain?  Looking at the code I think we're probably doing the right
thing but it'd be good to consider.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
@ 2013-12-09 16:58       ` Mark Brown
  0 siblings, 0 replies; 19+ messages in thread
From: Mark Brown @ 2013-12-09 16:58 UTC (permalink / raw)
  To: Nicolas Ferre
  Cc: alsa-devel, richard.genoud, linux-sound, Bo Shen, plagnioj,
	linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 721 bytes --]

On Mon, Dec 09, 2013 at 11:20:05AM +0100, Nicolas Ferre wrote:

> It seems that this patch has not been applied to your "next" branch
> (aka ping)...

If you think something has been forgotten please resend.  If it's
genuinely been lost it's going to need resending and the mail just leads
to more mails, a resend can be directly applied.  I had thought I'd
replied to this at the time but it seems I didn't, or at least I can't
see my reply on the list...  sorry about that.

The question was if we should change this or if we should change the
core to not overwrite something that probably ought to be the driver's
domain?  Looking at the code I think we're probably doing the right
thing but it'd be good to consider.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
@ 2013-12-09 16:58       ` Mark Brown
  0 siblings, 0 replies; 19+ messages in thread
From: Mark Brown @ 2013-12-09 16:58 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Dec 09, 2013 at 11:20:05AM +0100, Nicolas Ferre wrote:

> It seems that this patch has not been applied to your "next" branch
> (aka ping)...

If you think something has been forgotten please resend.  If it's
genuinely been lost it's going to need resending and the mail just leads
to more mails, a resend can be directly applied.  I had thought I'd
replied to this at the time but it seems I didn't, or at least I can't
see my reply on the list...  sorry about that.

The question was if we should change this or if we should change the
core to not overwrite something that probably ought to be the driver's
domain?  Looking at the code I think we're probably doing the right
thing but it'd be good to consider.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131209/06881f6f/attachment.sig>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [RESEND PATCH v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
  2013-11-27 10:05   ` Bo Shen
  (?)
@ 2013-12-18  6:55     ` Bo Shen
  -1 siblings, 0 replies; 19+ messages in thread
From: Bo Shen @ 2013-12-18  6:55 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, richard.genoud, nicolas.ferre, linux-sound, Bo Shen,
	linux-arm-kernel

When call snd_soc_register_card, it will set driver data to this
device through dev_set_drvdata, then in driver, no need to call
platform_set_drvdata again, so remove it.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Tested-by: Richard Genoud <richard.genoud@gmail.com>
---
Hi Mark,
   This patch is not in your tree, so I resend it.

 sound/soc/atmel/sam9x5_wm8731.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 7d6a905..3188036 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
 	of_node_put(codec_np);
 	of_node_put(cpu_np);
 
-	platform_set_drvdata(pdev, card);
-
 	ret = snd_soc_register_card(card);
 	if (ret) {
 		dev_err(&pdev->dev,
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [RESEND PATCH v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
@ 2013-12-18  6:55     ` Bo Shen
  0 siblings, 0 replies; 19+ messages in thread
From: Bo Shen @ 2013-12-18  6:55 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, richard.genoud, nicolas.ferre, linux-sound, Bo Shen,
	linux-arm-kernel

When call snd_soc_register_card, it will set driver data to this
device through dev_set_drvdata, then in driver, no need to call
platform_set_drvdata again, so remove it.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Tested-by: Richard Genoud <richard.genoud@gmail.com>
---
Hi Mark,
   This patch is not in your tree, so I resend it.

 sound/soc/atmel/sam9x5_wm8731.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 7d6a905..3188036 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
 	of_node_put(codec_np);
 	of_node_put(cpu_np);
 
-	platform_set_drvdata(pdev, card);
-
 	ret = snd_soc_register_card(card);
 	if (ret) {
 		dev_err(&pdev->dev,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [RESEND PATCH v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
@ 2013-12-18  6:55     ` Bo Shen
  0 siblings, 0 replies; 19+ messages in thread
From: Bo Shen @ 2013-12-18  6:55 UTC (permalink / raw)
  To: linux-arm-kernel

When call snd_soc_register_card, it will set driver data to this
device through dev_set_drvdata, then in driver, no need to call
platform_set_drvdata again, so remove it.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Tested-by: Richard Genoud <richard.genoud@gmail.com>
---
Hi Mark,
   This patch is not in your tree, so I resend it.

 sound/soc/atmel/sam9x5_wm8731.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 7d6a905..3188036 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
 	of_node_put(codec_np);
 	of_node_put(cpu_np);
 
-	platform_set_drvdata(pdev, card);
-
 	ret = snd_soc_register_card(card);
 	if (ret) {
 		dev_err(&pdev->dev,
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
  2013-11-27 10:05   ` Bo Shen
@ 2013-12-31 12:27     ` Mark Brown
  -1 siblings, 0 replies; 19+ messages in thread
From: Mark Brown @ 2013-12-31 12:27 UTC (permalink / raw)
  To: Bo Shen
  Cc: nicolas.ferre, plagnioj, richard.genoud, linux-sound, alsa-devel,
	linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]

On Wed, Nov 27, 2013 at 06:05:10PM +0800, Bo Shen wrote:
> When call snd_soc_register_card, it will set driver data to this
> device through dev_set_drvdata, then in driver, no need to call
> platform_set_drvdata again, so remove it.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
@ 2013-12-31 12:27     ` Mark Brown
  0 siblings, 0 replies; 19+ messages in thread
From: Mark Brown @ 2013-12-31 12:27 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Nov 27, 2013 at 06:05:10PM +0800, Bo Shen wrote:
> When call snd_soc_register_card, it will set driver data to this
> device through dev_set_drvdata, then in driver, no need to call
> platform_set_drvdata again, so remove it.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131231/1e6a2c99/attachment.sig>

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-12-31 12:27 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27 10:05 [Patch v2 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module Bo Shen
2013-11-27 10:05 ` Bo Shen
2013-11-27 10:05 ` Bo Shen
2013-11-27 10:05 ` [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata Bo Shen
2013-11-27 10:05   ` Bo Shen
2013-11-27 10:05   ` Bo Shen
2013-12-09 10:20   ` Nicolas Ferre
2013-12-09 10:20     ` Nicolas Ferre
2013-12-09 10:20     ` Nicolas Ferre
2013-12-09 16:58     ` Mark Brown
2013-12-09 16:58       ` Mark Brown
2013-12-09 16:58       ` Mark Brown
2013-12-18  6:55   ` [RESEND PATCH " Bo Shen
2013-12-18  6:55     ` Bo Shen
2013-12-18  6:55     ` Bo Shen
2013-12-31 12:27   ` [Patch " Mark Brown
2013-12-31 12:27     ` Mark Brown
2013-11-27 15:50 ` [Patch v2 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module Mark Brown
2013-11-27 15:50   ` Mark Brown

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.