ASoC: Clean up AC'97 glue driver

Remove version number and clean up some indentation.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
Mark Brown 2010-09-23 19:43:07 +01:00
parent 8d85d7414a
commit 591796b82a
1 changed files with 5 additions and 9 deletions

View File

@ -22,8 +22,6 @@
#include <sound/initval.h> #include <sound/initval.h>
#include <sound/soc.h> #include <sound/soc.h>
#define AC97_VERSION "0.6"
static int ac97_prepare(struct snd_pcm_substream *substream, static int ac97_prepare(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai) struct snd_soc_dai *dai)
{ {
@ -81,11 +79,9 @@ static int ac97_soc_probe(struct snd_soc_codec *codec)
struct snd_ac97_template ac97_template; struct snd_ac97_template ac97_template;
int ret; int ret;
printk(KERN_INFO "AC97 SoC Audio Codec %s\n", AC97_VERSION);
ret = snd_soc_new_ac97_codec(codec, &soc_ac97_ops, 0); ret = snd_soc_new_ac97_codec(codec, &soc_ac97_ops, 0);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "ASoC: failed to init gen ac97 glue\n"); printk(KERN_ERR "ASoC: failed to init generic ac97 glue\n");
return ret; return ret;
} }
@ -127,8 +123,8 @@ static int ac97_soc_resume(struct snd_soc_codec *codec)
#endif #endif
static struct snd_soc_codec_driver soc_codec_dev_ac97 = { static struct snd_soc_codec_driver soc_codec_dev_ac97 = {
.write = ac97_write, .write = ac97_write,
.read = ac97_read, .read = ac97_read,
.probe = ac97_soc_probe, .probe = ac97_soc_probe,
.remove = ac97_soc_remove, .remove = ac97_soc_remove,
.suspend = ac97_soc_suspend, .suspend = ac97_soc_suspend,
@ -149,8 +145,8 @@ static int __devexit ac97_remove(struct platform_device *pdev)
static struct platform_driver ac97_codec_driver = { static struct platform_driver ac97_codec_driver = {
.driver = { .driver = {
.name = "ac97-codec", .name = "ac97-codec",
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = ac97_probe, .probe = ac97_probe,