[alsa-devel] [PATCH 3/3] ASoC: Clean up the CODEC device as well as the board for SMDK WM9713

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Sep 23 16:56:14 CEST 2010


On Thu, Sep 23, 2010 at 11:53:00PM +0900, Jassi Brar wrote:
> On Thu, Sep 23, 2010 at 11:40 PM, Mark Brown

> >  static void __exit smdk_exit(void)
> >  {
> >        platform_device_unregister(smdk_snd_ac97_device);
> > +       platform_device_unregister(smdk_snd_wm9713_device);
> >  }
> >
> >  module_init(smdk_init);

> I think we need more than this to make module load/unload/load work.
> Like the soc-audio device added. Wouldn't that spoil the party next time
> the module is tried to loaded ?

Yes, the soc-audio device does need to be unregistered - it's the
smdk_snd_ac97_device that was already being unregistered here.


More information about the Alsa-devel mailing list