aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/au1x/db1200.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-13 10:00:22 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-01-13 10:00:22 -0500
commit4de3a8e101150feaefa1139611a50ff37467f33e (patch)
treedaada742542518b02d7db7c5d32e715eaa5f166d /sound/soc/au1x/db1200.c
parent294064f58953f9964e5945424b09c51800330a83 (diff)
parent099469502f62fbe0d7e4f0b83a2f22538367f734 (diff)
Merge branch 'master' into fixes
Diffstat (limited to 'sound/soc/au1x/db1200.c')
-rw-r--r--sound/soc/au1x/db1200.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index 289312c14b99..1c629393df78 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -45,6 +45,7 @@ static struct snd_soc_dai_link db1200_ac97_dai = {
45 45
46static struct snd_soc_card db1200_ac97_machine = { 46static struct snd_soc_card db1200_ac97_machine = {
47 .name = "DB1200_AC97", 47 .name = "DB1200_AC97",
48 .owner = THIS_MODULE,
48 .dai_link = &db1200_ac97_dai, 49 .dai_link = &db1200_ac97_dai,
49 .num_links = 1, 50 .num_links = 1,
50}; 51};
@@ -94,6 +95,7 @@ static struct snd_soc_dai_link db1200_i2s_dai = {
94 95
95static struct snd_soc_card db1200_i2s_machine = { 96static struct snd_soc_card db1200_i2s_machine = {
96 .name = "DB1200_I2S", 97 .name = "DB1200_I2S",
98 .owner = THIS_MODULE,
97 .dai_link = &db1200_i2s_dai, 99 .dai_link = &db1200_i2s_dai,
98 .num_links = 1, 100 .num_links = 1,
99}; 101};
@@ -133,18 +135,7 @@ static struct platform_driver db1200_audio_driver = {
133 .remove = __devexit_p(db1200_audio_remove), 135 .remove = __devexit_p(db1200_audio_remove),
134}; 136};
135 137
136static int __init db1200_audio_load(void) 138module_platform_driver(db1200_audio_driver);
137{
138 return platform_driver_register(&db1200_audio_driver);
139}
140
141static void __exit db1200_audio_unload(void)
142{
143 platform_driver_unregister(&db1200_audio_driver);
144}
145
146module_init(db1200_audio_load);
147module_exit(db1200_audio_unload);
148 139
149MODULE_LICENSE("GPL"); 140MODULE_LICENSE("GPL");
150MODULE_DESCRIPTION("DB1200 ASoC audio support"); 141MODULE_DESCRIPTION("DB1200 ASoC audio support");