From patchwork Thu Oct 3 04:15:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 280211 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 197B12C03F4 for ; Thu, 3 Oct 2013 14:16:02 +1000 (EST) Received: from mail-pb0-x22d.google.com (mail-pb0-x22d.google.com [IPv6:2607:f8b0:400e:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 7A3302C00BD for ; Thu, 3 Oct 2013 14:15:32 +1000 (EST) Received: by mail-pb0-f45.google.com with SMTP id mc17so1861087pbc.4 for ; Wed, 02 Oct 2013 21:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=+s6awpvIRcjGPmFqicQ2b8AiqZ1azCJ6q4ruWxuqGLo=; b=HpY+opP2O5nh/ZhMLseXj+gp5uIxRPGbB7TclQqwj+EQqZ8fuFYgtrDzND8sg6fB2o x9ziRyfn88moq6bCiVkYUm3rP4iEbOdMhpKPYqMQU0QDMK3GfhzUpCVzl7wAsLPWEOjh hzlkoPdvAyGqa5P+819Oi45tSVOBsOlZ0nm+XDHGESA8O7Yiq8uVbeHX/agpjUzW6/Nd OB+rDlpgUf+PZpe7ynxDDBFjEuXJdgYwTvhAhLBIAFdcdxXtBg1h6fo7c7PBH0Y6pC7/ af03yKv8wfl4C9PO586oEFmpHyjhQfmtildqD908Ek8rm+fSVzRpccLCSt0r8qArnTZG NCeQ== X-Received: by 10.68.143.104 with SMTP id sd8mr6353431pbb.10.1380773729603; Wed, 02 Oct 2013 21:15:29 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by mx.google.com with ESMTPSA id so2sm5328706pbc.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 02 Oct 2013 21:15:28 -0700 (PDT) From: Guenter Roeck To: alsa-devel@alsa-project.org Subject: [PATCH] ASoC: fsl_ssi: Fix irq_of_parse_and_map() return value check Date: Wed, 2 Oct 2013 21:15:22 -0700 Message-Id: <1380773722-1295-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 1.7.9.7 Cc: Timur Tabi , Takashi Iwai , linux-kernel@vger.kernel.org, Liam Girdwood , Jaroslav Kysela , Mark Brown , Geert Uytterhoeven , Grant Likely , linuxppc-dev@lists.ozlabs.org, Guenter Roeck X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16rc2 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" irq_of_parse_and_map() returns 0 on error, not NO_IRQ. Fix the following xtensa:allmodconfig build error. sound/soc/fsl/fsl_ssi.c:705:26: error: 'NO_IRQ' undeclared (first use in this function) make[4]: *** [sound/soc/fsl/fsl_ssi.o] Error 1 Cc: Geert Uytterhoeven Cc: Grant Likely Signed-off-by: Guenter Roeck --- Previously submitted by Grant Likely as part of a different patch set. See https://lkml.org/lkml/2012/1/11/342. Also see https://lkml.org/lkml/2013/7/25/642. 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 c6b7439..6b81d0c 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -936,7 +936,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) ssi_private->ssi_phys = res.start; ssi_private->irq = irq_of_parse_and_map(np, 0); - if (ssi_private->irq == NO_IRQ) { + if (ssi_private->irq == 0) { dev_err(&pdev->dev, "no irq for node %s\n", np->full_name); return -ENXIO; }