summaryrefslogtreecommitdiffstats
path: root/sound/soc/au1x
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-22 09:28:29 -0400
committerMark Brown <broonie@linaro.org>2013-08-22 09:28:29 -0400
commita04a2aca4c76a9d194dc5ed8b266cc61a0b848d4 (patch)
tree0db145a3dd5e4ce578117eeb852d2442ba5f4b9b /sound/soc/au1x
parent04877397afbdfeda4e073be710ce3f79f2912f16 (diff)
parent60db923dad880f973d8e1aa7f654f2b928b34ad1 (diff)
Merge remote-tracking branch 'asoc/topic/au1x' into asoc-next
Diffstat (limited to 'sound/soc/au1x')
-rw-r--r--sound/soc/au1x/db1200.c4
-rw-r--r--sound/soc/au1x/psc-ac97.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index a497a0cfeba1..decba87a074c 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -73,12 +73,14 @@ static struct snd_soc_dai_link db1300_ac97_dai = {
73 73
74static struct snd_soc_card db1300_ac97_machine = { 74static struct snd_soc_card db1300_ac97_machine = {
75 .name = "DB1300_AC97", 75 .name = "DB1300_AC97",
76 .owner = THIS_MODULE,
76 .dai_link = &db1300_ac97_dai, 77 .dai_link = &db1300_ac97_dai,
77 .num_links = 1, 78 .num_links = 1,
78}; 79};
79 80
80static struct snd_soc_card db1550_ac97_machine = { 81static struct snd_soc_card db1550_ac97_machine = {
81 .name = "DB1550_AC97", 82 .name = "DB1550_AC97",
83 .owner = THIS_MODULE,
82 .dai_link = &db1200_ac97_dai, 84 .dai_link = &db1200_ac97_dai,
83 .num_links = 1, 85 .num_links = 1,
84}; 86};
@@ -145,6 +147,7 @@ static struct snd_soc_dai_link db1300_i2s_dai = {
145 147
146static struct snd_soc_card db1300_i2s_machine = { 148static struct snd_soc_card db1300_i2s_machine = {
147 .name = "DB1300_I2S", 149 .name = "DB1300_I2S",
150 .owner = THIS_MODULE,
148 .dai_link = &db1300_i2s_dai, 151 .dai_link = &db1300_i2s_dai,
149 .num_links = 1, 152 .num_links = 1,
150}; 153};
@@ -161,6 +164,7 @@ static struct snd_soc_dai_link db1550_i2s_dai = {
161 164
162static struct snd_soc_card db1550_i2s_machine = { 165static struct snd_soc_card db1550_i2s_machine = {
163 .name = "DB1550_I2S", 166 .name = "DB1550_I2S",
167 .owner = THIS_MODULE,
164 .dai_link = &db1550_i2s_dai, 168 .dai_link = &db1550_i2s_dai,
165 .num_links = 1, 169 .num_links = 1,
166}; 170};
diff --git a/sound/soc/au1x/psc-ac97.c b/sound/soc/au1x/psc-ac97.c
index a822ab822bb7..986dcec79fa0 100644
--- a/sound/soc/au1x/psc-ac97.c
+++ b/sound/soc/au1x/psc-ac97.c
@@ -379,9 +379,6 @@ static int au1xpsc_ac97_drvprobe(struct platform_device *pdev)
379 mutex_init(&wd->lock); 379 mutex_init(&wd->lock);
380 380
381 iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); 381 iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
382 if (!iores)
383 return -ENODEV;
384
385 wd->mmio = devm_ioremap_resource(&pdev->dev, iores); 382 wd->mmio = devm_ioremap_resource(&pdev->dev, iores);
386 if (IS_ERR(wd->mmio)) 383 if (IS_ERR(wd->mmio))
387 return PTR_ERR(wd->mmio); 384 return PTR_ERR(wd->mmio);