Message ID | f77d3cc6ccd2de3f94c0b09c110d970d5c8e0372.1510997815.git.arvind.yadav.cs@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C8AE160597 for <patchwork-alsa-devel@patchwork.kernel.org>; Sat, 18 Nov 2017 10:05:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B517B2A2BD for <patchwork-alsa-devel@patchwork.kernel.org>; Sat, 18 Nov 2017 10:05:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7219297BC; Sat, 18 Nov 2017 10:05:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E51AB2A7BD for <patchwork-alsa-devel@patchwork.kernel.org>; Sat, 18 Nov 2017 10:05:51 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CE3A52678B3; Sat, 18 Nov 2017 10:57:17 +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 AC9922678A6; Sat, 18 Nov 2017 10:57:16 +0100 (CET) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by alsa0.perex.cz (Postfix) with ESMTP id EDBB82678A5 for <alsa-devel@alsa-project.org>; Sat, 18 Nov 2017 10:57:14 +0100 (CET) Received: by mail-pf0-f193.google.com with SMTP id i15so3764036pfa.3 for <alsa-devel@alsa-project.org>; Sat, 18 Nov 2017 01:57:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=M3b5gEky/Cc4XvgNLS7kI7lwaQfU1C3m+0qpVcLnYh4=; b=uqcDD01waABaZdC0vtDO5t8n5fU/hvH0BRYFsma7YqcNZdE9z1Ol5g3A9SwT/NdEd6 qVdUv/YBPNZ464U64m2V0sG/5aBarlX82II7Qiny/h7pDd5S2W6oC+Vjhuycfh/wNHBm NHcBCGIk+dC6Y5MwBA9bv47sXpepXnH527UxBrv94deZZkIcR20s3yDLdEZI4rat/XA2 5efUVLJwIgb8Z8DykQnXvBt3BortC8GH8nUE72H0DbiQ45md3fYeeqd9bBI8+cg6BE1+ FPjC39TVKygAca1tpZrfEpYASyFu4GjWcqLS03u6I00XSroO4SV8KY3KS2q/ZOEE88+N wfyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=M3b5gEky/Cc4XvgNLS7kI7lwaQfU1C3m+0qpVcLnYh4=; b=mIdVB1Rqk0wfM1yRo3B5Cc92Q37fBkW9cMaEQjFM1MhL4cQ+x0OUF8j/TPAbHcvkTN cO8DtQ6DSR90gwDGFw69kC6l7kfahaijMFk4fZrKqDrUWuFhJSva1o9+RdCggHLSzuvZ Oes/r/5Jnq0VqO7PxdQxHAtLAvOHsUWsH+pAYQX1mqUD2oE3lMicc7racgS/Cqf5zG3J o6EyKoTmrmfD3rV7F1V635OpCYxJlaQc+BNRhgJtVo2ASM2tghYLkQHhoYEizvw6O/7X 8J8GWqUDOocs8NZEkc2ZsICTImCobmXH6ue7EOTDtGkiv8HZ9or+sxtizvSUiZp0DfzJ Ui7g== X-Gm-Message-State: AJaThX6ietAmTIueIPQDKpYCs0gdURf6N9E3n22M0MtCKuFsr5Sqr+QL dI5HwTV02eAPkl7aMqfOc8c= X-Google-Smtp-Source: AGs4zMZ/8ivEweyKHisua412YoXBDEe7EiGZ6BZcEV+UizwTE7FoT7e9ZLutHYRE+0CnNk35AD1EBg== X-Received: by 10.98.80.69 with SMTP id e66mr4943713pfb.112.1510999033609; Sat, 18 Nov 2017 01:57:13 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id r16sm8862577pgt.72.2017.11.18.01.57.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 18 Nov 2017 01:57:13 -0800 (PST) From: Arvind Yadav <arvind.yadav.cs@gmail.com> To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, matthias.bgg@gmail.com, linux@armlinux.org.uk Date: Sat, 18 Nov 2017 15:26:49 +0530 Message-Id: <f77d3cc6ccd2de3f94c0b09c110d970d5c8e0372.1510997815.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <874375c0dca41790e47b60ce30f88ab353f97b38.1510997839.git.arvind.yadav.cs@gmail.com> References: <874375c0dca41790e47b60ce30f88ab353f97b38.1510997839.git.arvind.yadav.cs@gmail.com> In-Reply-To: <37f7370f99f4efa12f92eaeada72ff511d409fa6.1510997815.git.arvind.yadav.cs@gmail.com> References: <37f7370f99f4efa12f92eaeada72ff511d409fa6.1510997815.git.arvind.yadav.cs@gmail.com> Cc: alsa-devel@alsa-project.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH 5/5 v2] ASoC: intel: mfld: Handle return value of platform_get_irq 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/intel/boards/mfld_machine.c b/sound/soc/intel/boards/mfld_machine.c index 6f44acf..77b3162 100644 --- a/sound/soc/intel/boards/mfld_machine.c +++ b/sound/soc/intel/boards/mfld_machine.c @@ -372,6 +372,8 @@ static int snd_mfld_mc_probe(struct platform_device *pdev) /* retrive the irq number */ irq = platform_get_irq(pdev, 0); + if (irq <= 0) + return irq; /* audio interrupt base of SRAM location where * interrupts are stored by System FW */
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. sound/soc/intel/boards/mfld_machine.c | 2 ++ 1 file changed, 2 insertions(+)