Skip to content

Commit

Permalink
ASoC: atmel-ssc: make it buildable on other architectures
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joachim Eastwood authored and Mark Brown committed Dec 24, 2012
1 parent a49f0d1 commit f4319ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/misc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion drivers/misc/atmel-ssc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f4319ff

Please sign in to comment.