From patchwork Wed Jan 14 12:48:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 5630941 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B4BBF9F358 for ; Wed, 14 Jan 2015 12:49:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E283C2037B for ; Wed, 14 Jan 2015 12:49:48 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 8730B2034E for ; Wed, 14 Jan 2015 12:49:47 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8A914265109; Wed, 14 Jan 2015 13:49:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 46B6E264F33; Wed, 14 Jan 2015 13:49:35 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 97BE4265091; Wed, 14 Jan 2015 13:49:31 +0100 (CET) Received: from mail-qg0-f45.google.com (mail-qg0-f45.google.com [209.85.192.45]) by alsa0.perex.cz (Postfix) with ESMTP id A213C26156A for ; Wed, 14 Jan 2015 13:49:24 +0100 (CET) Received: by mail-qg0-f45.google.com with SMTP id z107so6697099qgd.4 for ; Wed, 14 Jan 2015 04:49:23 -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; bh=WygK1zjl9flSXXKGSOUfjh4B3hYhJNDI5tOGXwl23kk=; b=Z0ygeeYU7ZYkLF7KuHKNmm3+gG5TQ1TDcFBx8fF+y6BCCiko3HQKKWetEOANp9+QvU 8Le+9Eeml4mwFpdw963iQTW1kR9gVhaY2ZxNtRKHpEkOx/aiA3suRTFYOVd1+oKQdqhe 3zALLQPIQlhS1S8JM9IwT52vmtY5/Qxf0hBCnkfnYVhn2S3IOIug5Uv036DC67mFmfaI 0x34xvghP/ciUihlNdR5AJvxQwNlgIuL0l4QSmDiB877hW1x6W+Kc9ahZqMhipwVA5we EkvpTfmuO5GYKZZXQNTnERnEfxQKkJY4H/Yk1ITFoUNhCaMVrVgnlUgFxu/I/PecVSnb QKkg== X-Received: by 10.224.167.82 with SMTP id p18mr6078122qay.98.1421239763803; Wed, 14 Jan 2015 04:49:23 -0800 (PST) Received: from localhost.localdomain ([201.82.153.107]) by mx.google.com with ESMTPSA id t67sm20377861qgt.11.2015.01.14.04.49.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jan 2015 04:49:22 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Date: Wed, 14 Jan 2015 10:48:59 -0200 Message-Id: <1421239739-7755-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: nicoleotsuka@gmail.com, Fabio Estevam , alsa-devel@alsa-project.org, timur@tabi.org Subject: [alsa-devel] [PATCH] ASoC: fsl_ssi: Change irq type to 'int' X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Since commit 2ffa531078037a0 ("ASoC: fsl_ssi: Fix module unbound") the irq number is retrieved via platform_get_irq(), which may fail and return a negative number, so adapt its type to 'int'. Signed-off-by: Fabio Estevam --- sound/soc/fsl/fsl_ssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 65400be..46549de 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -160,7 +160,7 @@ struct fsl_ssi_soc_data { */ struct fsl_ssi_private { struct regmap *regs; - unsigned int irq; + int irq; struct snd_soc_dai_driver cpu_dai_drv; unsigned int dai_fmt;