2013-07-02 09:25:40

by Wei Yongjun

[permalink] [raw]
Subject: [PATCH] ASoC: mop500: add .owner to struct snd_soc_card

From: Wei Yongjun <[email protected]>

Add missing .owner of struct snd_soc_card. This prevents the
module from being removed from underneath its users.

Signed-off-by: Wei Yongjun <[email protected]>
---
sound/soc/ux500/mop500.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c
index 8f5cd00..178d1ba 100644
--- a/sound/soc/ux500/mop500.c
+++ b/sound/soc/ux500/mop500.c
@@ -52,6 +52,7 @@ static struct snd_soc_dai_link mop500_dai_links[] = {

static struct snd_soc_card mop500_card = {
.name = "MOP500-card",
+ .owner = THIS_MODULE,
.probe = NULL,
.dai_link = mop500_dai_links,
.num_links = ARRAY_SIZE(mop500_dai_links),


2013-07-02 18:16:14

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] ASoC: mop500: add .owner to struct snd_soc_card

On Tue, Jul 02, 2013 at 05:25:37PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <[email protected]>
>
> Add missing .owner of struct snd_soc_card. This prevents the
> module from being removed from underneath its users.

Applied, thanks.


Attachments:
(No filename) (252.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments