ASoC: atmel-ssc: make it buildable on other architectures
authorJoachim Eastwood <manabian@gmail.com>
Sat, 8 Dec 2012 12:46:41 +0000 (13:46 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Dec 2012 15:48:20 +0000 (15:48 +0000)
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>
drivers/misc/Kconfig
drivers/misc/atmel-ssc.c

index b151b7c..8f59d88 100644 (file)
@@ -192,7 +192,7 @@ config ICS932S401
 
 config ATMEL_SSC
        tristate "Device driver for Atmel SSC peripheral"
-       depends on AVR32 || ARCH_AT91
+       depends on HAS_IOMEM
        ---help---
          This option enables device driver support for Atmel Synchronized
          Serial Communication peripheral (SSC).
index 158da5a..0cee274 100644 (file)
@@ -167,7 +167,7 @@ static int ssc_probe(struct platform_device *pdev)
 
        /* disable all interrupts */
        clk_enable(ssc->clk);
-       ssc_writel(ssc->regs, IDR, ~0UL);
+       ssc_writel(ssc->regs, IDR, -1);
        ssc_readl(ssc->regs, SR);
        clk_disable(ssc->clk);