Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp862866ybh; Wed, 11 Mar 2020 12:20:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vudodPV4bbHbe8H0VmwkTjOx8PKeq+dzFEXCxNJdgBg8fAr0/pmdYfm66oV9xhi3rHGeSVW X-Received: by 2002:aca:b488:: with SMTP id d130mr176228oif.72.1583954403893; Wed, 11 Mar 2020 12:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583954403; cv=none; d=google.com; s=arc-20160816; b=0WusZJDi95TY47F11LjfQ9BOpGTpfxkJ3J9wD61ywT/bR5+8rDZSjOu5BTzPw0eHYw XHy0YxL0VgJx9PGO9lIyWwxmIU0wD3wvhxLzaD8R6tBS/f23vvQAcVKgmrBG/VJtQIVD AV9V6yk4Fi1fokNZK2J9EChdC3xk3x+DHJDFDFXTk/72qkX68vL1Nhsp23MmRZcStGJ9 6UVvTP8Hkhjt6TygT91N/m+Lx0C0b7rgNKcCaK/A9QnvesDPj0mfmsNWbqn9hB676FhQ elMa6w0HcWoZADuo/Et6sv9I+Z1XAMw/MYiACAwRlbLLMTTVje2d1sPe/bS98jqqa5Zg PRBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=r42oaftrh5pHz14qU1GYkB0RQE5bj151KUZhP6WCLUU=; b=JtivLUiWNuh0JO0jHvtf7EYT7h+3mZ1xJI1A61R7nzZU/z8+FMvkPgPCn478DDxxVY zlANjMpmikOuUN1l8vewOoqykVTT9aE1HEWXnAnzVdlSlBH4pbO/ryKSYmIDVY1+yyxu K08DwwSGGAWe954u6kjLcqigJ8wcieU4KxTM/B7o06BmxKdvaUpgS04UK23jKpatxDYI 9sM7DnbVzqtaILBvYEgsKPJ2n0zZZLvk6UNaA1xRgH4YQlwWGo3nfObD4UvfjiTzOmia NNnhojxBJNrxx5WSNsyCyktvkcaBP2zm9kIq/q8GNTU809eeRAQyOMbrbqFSQGclgbYS fWWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=G2+txh85; 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=fail (p=NONE sp=QUARANTINE 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 b8si1454340oib.193.2020.03.11.12.19.51; Wed, 11 Mar 2020 12:20:03 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=G2+txh85; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731093AbgCKTTV (ORCPT + 99 others); Wed, 11 Mar 2020 15:19:21 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38851 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730807AbgCKTTU (ORCPT ); Wed, 11 Mar 2020 15:19:20 -0400 Received: by mail-pg1-f194.google.com with SMTP id x7so1718084pgh.5; Wed, 11 Mar 2020 12:19:20 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=r42oaftrh5pHz14qU1GYkB0RQE5bj151KUZhP6WCLUU=; b=G2+txh85XP+S2jm9NSogjxqBUikS9Ngp6DtlfWcrAd9ufiH47Xb0eN1WLqYPThF/21 1CiU/fLxTDxovvO+tstyelBWaQNE54Cd9MaVw5sUNbbJll0t9oy6RoVBciTb1yx+p3n8 SYMIbkSRuqEWGJPp9+ILBaLuPRjrhgatYgkP4uCMx2DpqGuBtdGqDm9bz7yvAOkct02H ymKsFcr0TFGylW3wkp6TPDnM7XYWoZVV1aaNU6yHrcziFZvZIJAKRJCwXzanVr0JxFdT eOoxecolqmumlXalOmw6vTiAKijvk0SgCuOyhL3gDgTTbUUoHdPR+r5SudaD3n/8pHnx JSmg== 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:mime-version:content-transfer-encoding; bh=r42oaftrh5pHz14qU1GYkB0RQE5bj151KUZhP6WCLUU=; b=UFqMRfRVbZSurBAXuDM99VAZHjYk6UKia3S/an2cQjvV1YfIs+jdWcPlDLijRPlJbG /SSzbA7icVFURqm8BC7q6tvQb3SVD1gJZ0GOXVWt8KdpUKUUYd4A8v2tpdzT8EzWvVbS JXTAvFVZaqfZLEOOQv/cshIpf79ry/1UMV96sLCw1hazwpeugFjx9ysx4CveS8GWb2Eb xHHn+YvjRlnyYNo8DuIWo+zBCXtG9eRk+tGoEcm6lHOX6izo7lGl6Nzx1+Txgvy8QEF0 0+9G2C6dH6vf2AXjJMKAwa1Fda/NjHYlFjcDsCynuFjAAD5yk4LaTRssj63CGNSBlHeM 4rDA== X-Gm-Message-State: ANhLgQ1F78/TcJ0fN3gHSRlC7WXjMdihGxl5pHXnrcTEqh8UBuoP3N8R elHH20ePgWDeF4O3sScz8oo+qURm/qr3pg== X-Received: by 2002:a62:ce48:: with SMTP id y69mr4249326pfg.178.1583954359553; Wed, 11 Mar 2020 12:19:19 -0700 (PDT) Received: from localhost.localdomain ([103.46.201.94]) by smtp.gmail.com with ESMTPSA id z17sm3792673pff.12.2020.03.11.12.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 12:19:19 -0700 (PDT) From: Aman Sharma Cc: amanharitsh123@gmail.com, Thomas Petazzoni , Lorenzo Pieralisi , Andrew Murray , Bjorn Helgaas , Linus Walleij , Ryder Lee , Karthikeyan Mitran , Hou Zhiqiang , Marc Gonzalez , Mans Rullgard , Matthias Brugger , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 1/5] pci: handled return value of platform_get_irq correctly Date: Thu, 12 Mar 2020 00:49:02 +0530 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Aman Sharma --- drivers/pci/controller/pci-v3-semi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/pci-v3-semi.c b/drivers/pci/controller/pci-v3-semi.c index bd05221f5a22..a5bf945d2eda 100644 --- a/drivers/pci/controller/pci-v3-semi.c +++ b/drivers/pci/controller/pci-v3-semi.c @@ -777,9 +777,9 @@ static int v3_pci_probe(struct platform_device *pdev) /* Get and request error IRQ resource */ irq = platform_get_irq(pdev, 0); - if (irq <= 0) { + if (irq < 0) { dev_err(dev, "unable to obtain PCIv3 error IRQ\n"); - return -ENODEV; + return irq; } ret = devm_request_irq(dev, irq, v3_irq, 0, "PCIv3 error", v3); -- 2.20.1