From patchwork Sat Dec 8 12:46:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 1852471 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 4B38F400ED for ; Sat, 8 Dec 2012 12:49:48 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1ThJoE-0005f9-RM; Sat, 08 Dec 2012 12:47:10 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1ThJoB-0005eq-AC for linux-arm-kernel@lists.infradead.org; Sat, 08 Dec 2012 12:47:08 +0000 Received: by mail-lb0-f177.google.com with SMTP id n10so977362lbo.36 for ; Sat, 08 Dec 2012 04:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=NMmh+/6ZOMjBrxjFjwbQeIMZGy5IS1t81LGkUVmUG0Q=; b=p5GC6eZdm1GHVhHTFvFUfaMuhsSDNynrRGB/INRkF3kWqHZ0/+T0Fajy4cmVjAnpDF vYlaWIP8fpMRzac2tibB/iBSMAtOWI2YMNnHL5lU9prQsg8fPtoKG5hI9dIXdGaSEfze jZKtfxDwh8MRXNb0LBWIQb6QxywAAzwYXNR2LpdSuwktHY0w9pH/P6YMyV81X/lVcpbT GAaouLVKK/QobQfq6wlOFFOjv3xZJdI6CkFyxVHtXDQdjRNCnObtEodk03YtPTXs+BCx etAo6euzh0PK1CTZ8u3BGybAAotIhJEbsctaL/zYedQ8cDd7medigoyGxcPYsnx3AfEu fkEA== Received: by 10.152.124.83 with SMTP id mg19mr8359223lab.6.1354970823221; Sat, 08 Dec 2012 04:47:03 -0800 (PST) Received: from localhost.localdomain ([90.149.223.57]) by mx.google.com with ESMTPS id t5sm5699940lbf.6.2012.12.08.04.47.01 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 08 Dec 2012 04:47:02 -0800 (PST) From: Joachim Eastwood To: voice.shen@atmel.com, plagnioj@jcrosoft.com, nicolas.ferre@atmel.com, broonie@opensource.wolfsonmicro.com Subject: [PATCH] ASoC: atmel-ssc: make it buildable on other architectures Date: Sat, 8 Dec 2012 13:46:41 +0100 Message-Id: <1354970801-9185-1-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 1.8.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121208_074707_654678_AEBD7163 X-CRM114-Status: GOOD ( 15.12 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (manabian[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Joachim Eastwood , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 Acked-by: Nicolas Ferre --- Hi Mark, Sending it to you since seem like you're the last one who commited changes to the driver and the driver is mostly used on ASoC. Tested on RM9200 and build tested on x86_64. regards Joachim Eastwood drivers/misc/Kconfig | 2 +- drivers/misc/atmel-ssc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index b151b7c..8f59d88 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -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). diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index 158da5a..0cee274 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) /* 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);