Skip to content

Commit f4319ff

Browse files
manabianbroonie
authored andcommitted
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>
1 parent a49f0d1 commit f4319ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/misc/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ config ICS932S401
192192

193193
config ATMEL_SSC
194194
tristate "Device driver for Atmel SSC peripheral"
195-
depends on AVR32 || ARCH_AT91
195+
depends on HAS_IOMEM
196196
---help---
197197
This option enables device driver support for Atmel Synchronized
198198
Serial Communication peripheral (SSC).

‎drivers/misc/atmel-ssc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static int ssc_probe(struct platform_device *pdev)
167167

168168
/* disable all interrupts */
169169
clk_enable(ssc->clk);
170-
ssc_writel(ssc->regs, IDR, ~0UL);
170+
ssc_writel(ssc->regs, IDR, -1);
171171
ssc_readl(ssc->regs, SR);
172172
clk_disable(ssc->clk);
173173

0 commit comments

Comments
 (0)