2013-07-02 09:26:04

by Wei Yongjun

[permalink] [raw]
Subject: [PATCH] ASoC: imx_mc13783: 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/fsl/imx-mc13783.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/fsl/imx-mc13783.c b/sound/soc/fsl/imx-mc13783.c
index 9df173c..55742a1 100644
--- a/sound/soc/fsl/imx-mc13783.c
+++ b/sound/soc/fsl/imx-mc13783.c
@@ -90,6 +90,7 @@ static const struct snd_soc_dapm_route imx_mc13783_routes[] = {

static struct snd_soc_card imx_mc13783 = {
.name = "imx_mc13783",
+ .owner = THIS_MODULE,
.dai_link = imx_mc13783_dai_mc13783,
.num_links = ARRAY_SIZE(imx_mc13783_dai_mc13783),
.dapm_widgets = imx_mc13783_widget,


2013-07-02 18:15:05

by Mark Brown

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

On Tue, Jul 02, 2013 at 05:26:00PM +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