Received: by 10.223.164.202 with SMTP id h10csp1520533wrb; Sat, 18 Nov 2017 00:21:58 -0800 (PST) X-Google-Smtp-Source: AGs4zMai+M/26bhEoRr9AeXwDmSs5WUXT7Q/HagaDRsDG61CAX7b/Hz8Sp0S3NR2tsg18Le+qLyW X-Received: by 10.98.254.1 with SMTP id z1mr4668433pfh.24.1510993318761; Sat, 18 Nov 2017 00:21:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510993318; cv=none; d=google.com; s=arc-20160816; b=lJvKDIGJUxd/G1OnOtXIX5St61JqmIwGWJbBSEzTRrlYRGEm04DafZa9FaDJgW82Hj IjPR1J7ZYSNs1dbWCFZCFBaTdFQ0Z8Fbu8/WNShDeiVYJhmlU0CR/r0moaGo5rFnKWf2 DHVlMGxdXCDblvHgIVVaVEaHH4Ly0n/kXi3xWYrMsXBYzXSFXFgYUfZyxvWPICNEEhOL /G4v/JF5jmSJ0l4t6NP7IIxy46/z6dEvfLjEBN8AFYf1/6RZpCJ1b4VVxh/rAtIxj5SC e1sGMhM6K17/z8DlK0GhnNXGIXHJB4x7LPlP25jVpPmQLzwKNcCqZ7w+odZBzzjCrWN1 9MMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=v6xwwTmjG/o9phNXruoJ0RWSoK91W1jFeJbVHPUQ4xw=; b=FmeJ2dEUQUZM6uS0ay6eKtdbLC3S5kEW6JY2hHoL88tsH5Mja7Wnc+W2S61YW2ouz/ rgD27SeFPTveugOFpMdQjlxpZLTMhqo28aH08A6zHNKHOy28gokizSWILXubhGgLgbps /0vm4HVKsHUQT5NhcI02fEDiOa5Yx/TW/EEq+NszJsQ5u0dH0HdnnTb0ktU2zjcKscgF Obl1xu4QP2gqmNOj9+sJv/XVQ6+iPQPEIyOMqtqHvJ5jRP4VWzC7NxpqAoiO8+NQ4ho/ PlgPdbfvE9pWzVi1o9c7RwZ9I/jQRITt5HfTRRKlwOFk5p6H7MrEwChkgg+hGiLm7Lry v+lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BAtZuADv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v17si4124080pgb.484.2017.11.18.00.21.45; Sat, 18 Nov 2017 00:21:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BAtZuADv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161927AbdKQU3t (ORCPT + 93 others); Fri, 17 Nov 2017 15:29:49 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34343 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758621AbdKQU2s (ORCPT ); Fri, 17 Nov 2017 15:28:48 -0500 Received: by mail-pf0-f196.google.com with SMTP id x7so2732056pfa.1; Fri, 17 Nov 2017 12:28:48 -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; bh=v6xwwTmjG/o9phNXruoJ0RWSoK91W1jFeJbVHPUQ4xw=; b=BAtZuADv8Ty8UXtQ5f8Z87K5ar+bLRGFS1/nnqYO2+epTOdccfRUPqwuz+c8b9qB7N J4gtMYOxokt28JZKqDIIWGGfoHM9roDsyki0PvS+8p0y3mjjWOCEhoZxpAV1LKgrbtDL D2T2/rYzhH2yR1fcfZztFsh3x/84mFREISBf2TUE/iW0rZNpucKhfLuBkMC8c8/L234p G/HTVHoq30XtFHRuXkumcmuP9PDy6ywa3i8tRn4NZcBd++iesjLzMcJLwEw1r2gX9566 BzCkxsZJLvlc47xTbPr7jv1qJP7L3IBdZwV60WMgkWf/lC/Wj+4KkuKiOLsQb4lFsY2P aGSQ== 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; bh=v6xwwTmjG/o9phNXruoJ0RWSoK91W1jFeJbVHPUQ4xw=; b=jrz0DCDgW0IIqcTNOH1CxWZV5ldcJ/AYojz4GQRKJHZ9hTc1WnmQZmOVpW0vJ/HPmU bd8Eh2jYwDOyZZhsmi27o6qSoIg+ec3XpRmArvJURu7VFutpfw8f0iTkkOHosu8bWYcy nibz6i9F2dnQexiNphMf/OOgnXbtmi3pQFOXyZ5hh3xJ4h+nN6MOuNypeCB5KHDsE8AM dXZ97KYmOqGpjR0UX3AQvsfS8jbEtRkfWxmijMqYdIb/yV8QdIN6jvdfQHrt4jLcynvF IJDj/Q90np5QPbLO6v2NenvLKF3uol8uwKjhEL9rxoQD6+o5q2Jo8YMwkFGspac0MbrI Xxtg== X-Gm-Message-State: AJaThX7fml1RI2Vf3PEnGC+bGqQO5UdNKCjLliufYMB9joBAD+jQK8I5 mTTjhIpz132WSIelmKbh0E0= X-Received: by 10.98.134.65 with SMTP id x62mr3267263pfd.81.1510950528206; Fri, 17 Nov 2017 12:28:48 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id n72sm9382740pfg.109.2017.11.17.12.28.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 12:28:47 -0800 (PST) From: Arvind Yadav To: ulf.hansson@linaro.org, carlo@caione.org, khilman@baylibre.com, ben-linux@fluff.org, adrian.hunter@intel.com, vireshk@kernel.org, maxime.ripard@free-electrons.com, wens@csie.org Cc: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Subject: [PATCH 4/6] mmc: sdhci-spear: Handle return value of platform_get_irq Date: Sat, 18 Nov 2017 01:58:20 +0530 Message-Id: <1510950502-22565-5-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510950502-22565-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1510950502-22565-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/mmc/host/sdhci-spear.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c index 8c0f884..900838b 100644 --- a/drivers/mmc/host/sdhci-spear.c +++ b/drivers/mmc/host/sdhci-spear.c @@ -82,6 +82,10 @@ static int sdhci_probe(struct platform_device *pdev) host->hw_name = "sdhci"; host->ops = &sdhci_pltfm_ops; host->irq = platform_get_irq(pdev, 0); + if (host->irq < 0) { + ret = host->irq; + goto err_host; + } host->quirks = SDHCI_QUIRK_BROKEN_ADMA; sdhci = sdhci_priv(host); -- 2.7.4 From 1584610990200688580@xxx Mon Nov 20 18:33:22 +0000 2017 X-GM-THRID: 1584610990200688580 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread