aboutsummaryrefslogtreecommitdiffstats
path: root/sound/arm/aaci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/arm/aaci.c')
-rw-r--r--sound/arm/aaci.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
index 08cc3ddca96f..559ead6367da 100644
--- a/sound/arm/aaci.c
+++ b/sound/arm/aaci.c
@@ -20,6 +20,7 @@
20 20
21#include <asm/io.h> 21#include <asm/io.h>
22#include <asm/irq.h> 22#include <asm/irq.h>
23#include <asm/sizes.h>
23#include <asm/hardware/amba.h> 24#include <asm/hardware/amba.h>
24 25
25#include <sound/driver.h> 26#include <sound/driver.h>
@@ -650,7 +651,7 @@ static int aaci_do_resume(snd_card_t *card, unsigned int state)
650 return 0; 651 return 0;
651} 652}
652 653
653static int aaci_suspend(struct amba_device *dev, u32 state) 654static int aaci_suspend(struct amba_device *dev, pm_message_t state)
654{ 655{
655 snd_card_t *card = amba_get_drvdata(dev); 656 snd_card_t *card = amba_get_drvdata(dev);
656 return card ? aaci_do_suspend(card) : 0; 657 return card ? aaci_do_suspend(card) : 0;
@@ -821,7 +822,7 @@ static int __devinit aaci_init_pcm(struct aaci *aaci)
821 822
822static unsigned int __devinit aaci_size_fifo(struct aaci *aaci) 823static unsigned int __devinit aaci_size_fifo(struct aaci *aaci)
823{ 824{
824 void *base = aaci->base + AACI_CSCH1; 825 void __iomem *base = aaci->base + AACI_CSCH1;
825 int i; 826 int i;
826 827
827 writel(TXCR_FEN | TXCR_TSZ16 | TXCR_TXEN, base + AACI_TXCR); 828 writel(TXCR_FEN | TXCR_TSZ16 | TXCR_TXEN, base + AACI_TXCR);
@@ -877,7 +878,7 @@ static int __devinit aaci_probe(struct amba_device *dev, void *id)
877 aaci->playback.fifo = aaci->base + AACI_DR1; 878 aaci->playback.fifo = aaci->base + AACI_DR1;
878 879
879 for (i = 0; i < 4; i++) { 880 for (i = 0; i < 4; i++) {
880 void *base = aaci->base + i * 0x14; 881 void __iomem *base = aaci->base + i * 0x14;
881 882
882 writel(0, base + AACI_IE); 883 writel(0, base + AACI_IE);
883 writel(0, base + AACI_TXCR); 884 writel(0, base + AACI_TXCR);
@@ -900,6 +901,8 @@ static int __devinit aaci_probe(struct amba_device *dev, void *id)
900 if (ret) 901 if (ret)
901 goto out; 902 goto out;
902 903
904 snd_card_set_dev(aaci->card, &dev->dev);
905
903 ret = snd_card_register(aaci->card); 906 ret = snd_card_register(aaci->card);
904 if (ret == 0) { 907 if (ret == 0) {
905 dev_info(&dev->dev, "%s, fifo %d\n", aaci->card->longname, 908 dev_info(&dev->dev, "%s, fifo %d\n", aaci->card->longname,