diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-04-10 20:05:01 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-11 12:51:30 -0400 |
commit | cb00e3a16dc60618c1ce56882e8bde1ad55069d9 (patch) | |
tree | 4c0b6a71f220cb860dd7e83ab0408926bb654d9b /arch/arm/plat-samsung/devs.c | |
parent | a7c1a644e16400a33e122f2b03c6a34240001b49 (diff) |
ASoC: samsung: use irq resource for idma
With multiplatform kernels, we cannot use hardwired IRQ
numbers in device drivers. This changes the idma driver
to use a proper resource, like all other drivers do.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/plat-samsung/devs.c')
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index 51afedda9ab6..d81d9fbc8866 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c | |||
@@ -146,14 +146,20 @@ struct platform_device s3c_device_camif = { | |||
146 | 146 | ||
147 | /* ASOC DMA */ | 147 | /* ASOC DMA */ |
148 | 148 | ||
149 | #ifdef CONFIG_PLAT_S5P | ||
150 | static struct resource samsung_asoc_idma_resource = DEFINE_RES_IRQ(IRQ_I2S0); | ||
151 | |||
149 | struct platform_device samsung_asoc_idma = { | 152 | struct platform_device samsung_asoc_idma = { |
150 | .name = "samsung-idma", | 153 | .name = "samsung-idma", |
151 | .id = -1, | 154 | .id = -1, |
155 | .num_resources = 1, | ||
156 | .resource = &samsung_asoc_idma_resource, | ||
152 | .dev = { | 157 | .dev = { |
153 | .dma_mask = &samsung_device_dma_mask, | 158 | .dma_mask = &samsung_device_dma_mask, |
154 | .coherent_dma_mask = DMA_BIT_MASK(32), | 159 | .coherent_dma_mask = DMA_BIT_MASK(32), |
155 | } | 160 | } |
156 | }; | 161 | }; |
162 | #endif | ||
157 | 163 | ||
158 | /* FB */ | 164 | /* FB */ |
159 | 165 | ||