Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3174225ybi; Fri, 5 Jul 2019 03:09:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNBrwNbE9vbC6FKX8X3avA76Km2Inbf2QiQslu5EWPquM/k+1w5EZ38RwPX547JHDv2o6z X-Received: by 2002:a17:902:8a87:: with SMTP id p7mr4494227plo.124.1562321393277; Fri, 05 Jul 2019 03:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562321393; cv=none; d=google.com; s=arc-20160816; b=An7i4f75sEzQu3nIYyDzByDufqFFSKwfhknQ9TrfJpHHf16LIdVb1lNzGL+ZL4EkPS vam/ptsS+C1Nea5QpklLC+4jbOfcn7XDkZwQWvOTQDdIkXd6INXHqSaXR6XKvrSxkAc4 ISKe3WMPF3SLAFHWfK7yA6kVKXNexAz6ICtQvuXaF52Ib9ziANFEpHQuxlruEiy/CwcO tUj+VzrSVMeagRiG80cwYCD6J5bZ9uwvsyk40I3mBgQCyxYrQ2Ne2SF8YuQfHIFZeVqz GOc/JDWBLltyjWtGoAoUI/97emeFQf7VGVdowC5icB7y3yL1ZkDk9cVrQR8wPj1IDliE K4vQ== 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; bh=AZTkwAKvu+YSvTEfYjt4PrBulSdtSrSRI8uddEwOfgE=; b=XJqi/hRnf+nEtQwYZ45jIDp/XkpL/QRKPKP66fsMamd/HiA4UgIF9HEF+MCeHgsPRf tcebrRX7DhI+Blyy5DcCVwA1AnH0cI8X2iEmIcSy6HQE0Bnc5fIxmhScfgVWzCR4WjYU 0jigKliibJEEgELMvJ22qy04i5AhdcP75NmRENRtVPiLi+JIP2N3RWC9n24xPdyWp1A6 SUDNAydUE0ryRuHBajo+NaHfsHVwJ4iWgW1579j1ubkkRQGUhPioF08xlkpCTiyTb6Q7 sZkytCAlJ0lZq2n36tcKUy5+Wy6/AQGtcygHxZKHY+864n68T05EZkUyYDG8HsRap10G MhqQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si8956642pfe.269.2019.07.05.03.09.38; Fri, 05 Jul 2019 03:09:53 -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; 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=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728334AbfGEKHf (ORCPT + 99 others); Fri, 5 Jul 2019 06:07:35 -0400 Received: from inva020.nxp.com ([92.121.34.13]:32932 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728252AbfGEKHa (ORCPT ); Fri, 5 Jul 2019 06:07:30 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 72D771A077B; Fri, 5 Jul 2019 12:07:28 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E9F5B1A0EB9; Fri, 5 Jul 2019 12:07:19 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B0AA7402EB; Fri, 5 Jul 2019 18:07:09 +0800 (SGT) From: Hou Zhiqiang To: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com, l.subrahmanya@mobiveil.co.in, shawnguo@kernel.org, leoyang.li@nxp.com, lorenzo.pieralisi@arm.com, catalin.marinas@arm.com, will.deacon@arm.com Cc: Mingkai.Hu@nxp.com, Minghuan.Lian@nxp.com, Xiaowei.Bao@nxp.com, Hou Zhiqiang Subject: [PATCHv6 16/28] PCI: mobiveil: Fix the returned error number Date: Fri, 5 Jul 2019 17:56:44 +0800 Message-Id: <20190705095656.19191-17-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190705095656.19191-1-Zhiqiang.Hou@nxp.com> References: <20190705095656.19191-1-Zhiqiang.Hou@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch modified the returned error number by convention. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Splited from #3 of v5 patches, no functional change. drivers/pci/controller/pcie-mobiveil.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index 965f89a..51cbe53 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -822,7 +822,7 @@ static int mobiveil_pcie_init_irq_domain(struct mobiveil_pcie *pcie) if (!pcie->intx_domain) { dev_err(dev, "Failed to get a INTx IRQ domain\n"); - return -ENODEV; + return -ENOMEM; } raw_spin_lock_init(&pcie->intx_mask_lock); @@ -848,7 +848,7 @@ static int mobiveil_pcie_probe(struct platform_device *pdev) /* allocate the PCIe port */ bridge = devm_pci_alloc_host_bridge(dev, sizeof(*pcie)); if (!bridge) - return -ENODEV; + return -ENOMEM; pcie = pci_host_bridge_priv(bridge); if (!pcie) @@ -869,7 +869,7 @@ static int mobiveil_pcie_probe(struct platform_device *pdev) &pcie->resources, &iobase); if (ret) { dev_err(dev, "Getting bridge resources failed\n"); - return -ENOMEM; + return ret; } /* -- 1.7.1