aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoachim Eastwood <manabian@gmail.com>2012-12-08 07:46:41 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-24 10:48:20 -0500
commitf4319ff2bd23a5183f25ec0b3f5f753060ae2e4d (patch)
tree72e10960ec9bf9bd36fb0439c02f00c5daa32f6c /drivers
parenta49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff)
ASoC: atmel-ssc: make it buildable on other architectures
Not very useful on non AT91/AVR32 platforms but it provides more build coverage and prepares for ARM multiplatform. Also fixes a truncated warning that would come when building on a 64-bit arch. Signed-off-by: Joachim Eastwood <manabian@gmail.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/Kconfig2
-rw-r--r--drivers/misc/atmel-ssc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index b151b7c1bd59..8f59d88897e7 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -192,7 +192,7 @@ config ICS932S401
192 192
193config ATMEL_SSC 193config ATMEL_SSC
194 tristate "Device driver for Atmel SSC peripheral" 194 tristate "Device driver for Atmel SSC peripheral"
195 depends on AVR32 || ARCH_AT91 195 depends on HAS_IOMEM
196 ---help--- 196 ---help---
197 This option enables device driver support for Atmel Synchronized 197 This option enables device driver support for Atmel Synchronized
198 Serial Communication peripheral (SSC). 198 Serial Communication peripheral (SSC).
diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
index 158da5a81a66..0cee274e4126 100644
--- a/drivers/misc/atmel-ssc.c
+++ b/drivers/misc/atmel-ssc.c
@@ -167,7 +167,7 @@ static int ssc_probe(struct platform_device *pdev)
167 167
168 /* disable all interrupts */ 168 /* disable all interrupts */
169 clk_enable(ssc->clk); 169 clk_enable(ssc->clk);
170 ssc_writel(ssc->regs, IDR, ~0UL); 170 ssc_writel(ssc->regs, IDR, -1);
171 ssc_readl(ssc->regs, SR); 171 ssc_readl(ssc->regs, SR);
172 clk_disable(ssc->clk); 172 clk_disable(ssc->clk);
173 173