From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH 5/6] ASoC: ep93xx: Add .owner to struct snd_soc_card Date: Fri, 23 Dec 2011 10:19:40 +0200 Message-ID: <20111223081940.GA2401@mwesterb-mobl.ger.corp.intel.com> References: <1324559698.10821.2.camel@phoenix> <1324560097.10821.8.camel@phoenix> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-lpp01m010-f51.google.com (mail-lpp01m010-f51.google.com [209.85.215.51]) by alsa0.perex.cz (Postfix) with ESMTP id 6F9C4103F73 for ; Fri, 23 Dec 2011 09:20:03 +0100 (CET) Received: by lago2 with SMTP id o2so3531688lag.38 for ; Fri, 23 Dec 2011 00:20:02 -0800 (PST) Content-Disposition: inline In-Reply-To: <1324560097.10821.8.camel@phoenix> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Axel Lin Cc: alsa-devel@alsa-project.org, Ryan Mallon , Mark Brown , Alexander Sverdlin , Liam Girdwood , Lothar =?iso-8859-1?Q?Wa=DFmann?= List-Id: alsa-devel@alsa-project.org On Thu, Dec 22, 2011 at 09:21:37PM +0800, Axel Lin wrote: > Missed .owner of struct snd_soc_card will prevent the module from being > removed from underneath its users. > = > Reported-by: Lothar Wa=DFmann > Signed-off-by: Axel Lin Thanks! Acked-by: Mika Westerberg > --- > sound/soc/ep93xx/edb93xx.c | 1 + > sound/soc/ep93xx/simone.c | 1 + > sound/soc/ep93xx/snappercl15.c | 1 + > 3 files changed, 3 insertions(+), 0 deletions(-) > = > diff --git a/sound/soc/ep93xx/edb93xx.c b/sound/soc/ep93xx/edb93xx.c > index 9f6fecd..bae5cbb 100644 > --- a/sound/soc/ep93xx/edb93xx.c > +++ b/sound/soc/ep93xx/edb93xx.c > @@ -75,6 +75,7 @@ static struct snd_soc_dai_link edb93xx_dai =3D { > = > static struct snd_soc_card snd_soc_edb93xx =3D { > .name =3D "EDB93XX", > + .owner =3D THIS_MODULE, > .dai_link =3D &edb93xx_dai, > .num_links =3D 1, > }; > diff --git a/sound/soc/ep93xx/simone.c b/sound/soc/ep93xx/simone.c > index 1e00b33..dd99709 100644 > --- a/sound/soc/ep93xx/simone.c > +++ b/sound/soc/ep93xx/simone.c > @@ -34,6 +34,7 @@ static struct snd_soc_dai_link simone_dai =3D { > = > static struct snd_soc_card snd_soc_simone =3D { > .name =3D "Sim.One", > + .owner =3D THIS_MODULE, > .dai_link =3D &simone_dai, > .num_links =3D 1, > }; > diff --git a/sound/soc/ep93xx/snappercl15.c b/sound/soc/ep93xx/snappercl1= 5.c > index e97cd57..ccae34a 100644 > --- a/sound/soc/ep93xx/snappercl15.c > +++ b/sound/soc/ep93xx/snappercl15.c > @@ -93,6 +93,7 @@ static struct snd_soc_dai_link snappercl15_dai =3D { > = > static struct snd_soc_card snd_soc_snappercl15 =3D { > .name =3D "Snapper CL15", > + .owner =3D THIS_MODULE, > .dai_link =3D &snappercl15_dai, > .num_links =3D 1, > }; > -- = > 1.7.5.4 > = > =