Lines Matching defs:wm8974
2 * wm8974.c -- WM8974 ALSA Soc Audio driver
30 #include "wm8974.h"
666 static __devinit int wm8974_register(struct wm8974_priv *wm8974)
669 struct snd_soc_codec *codec = &wm8974->codec;
681 snd_soc_codec_set_drvdata(codec, wm8974);
689 codec->reg_cache = &wm8974->reg_cache;
728 kfree(wm8974);
732 static __devexit void wm8974_unregister(struct wm8974_priv *wm8974)
734 wm8974_set_bias_level(&wm8974->codec, SND_SOC_BIAS_OFF);
736 snd_soc_unregister_codec(&wm8974->codec);
737 kfree(wm8974);
744 struct wm8974_priv *wm8974;
747 wm8974 = kzalloc(sizeof(struct wm8974_priv), GFP_KERNEL);
748 if (wm8974 == NULL)
751 codec = &wm8974->codec;
754 i2c_set_clientdata(i2c, wm8974);
759 return wm8974_register(wm8974);
764 struct wm8974_priv *wm8974 = i2c_get_clientdata(client);
765 wm8974_unregister(wm8974);
770 { "wm8974", 0 },