linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shawn Guo <shawn.guo@linaro.org>
To: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
	Pratyush Anand <pratyush.anand@gmail.com>,
	Stanimir Varbanov <svarbanov@mm-sol.com>,
	Jianguo Sun <sunjianguo1@huawei.com>,
	Joao Pinto <Joao.Pinto@synopsys.com>,
	Jesper Nilsson <jesper.nilsson@axis.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Murali Karicheri <m-karicheri2@ti.com>,
	Lucas Stach <l.stach@pengutronix.de>,
	Jingoo Han <jingoohan1@gmail.com>,
	linux-pci@vger.kernel.org, Shawn Guo <shawn.guo@linaro.org>
Subject: [PATCH v3 9/9] PCI: spear13xx: Drop unnecessary root_bus_nr setting
Date: Sun,  1 Jul 2018 11:54:51 +0800	[thread overview]
Message-ID: <1530417291-30495-10-git-send-email-shawn.guo@linaro.org> (raw)
In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org>

Function dw_pcie_host_init() already initializes the root_bus_nr field
of 'struct pcie_port', so the -1 assignment prior to calling
dw_pcie_host_init() in platform specific driver is not really needed.
Drop it.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
---
 drivers/pci/controller/dwc/pcie-spear13xx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pcie-spear13xx.c b/drivers/pci/controller/dwc/pcie-spear13xx.c
index ecb58f7b7566..7d0cdfd8138b 100644
--- a/drivers/pci/controller/dwc/pcie-spear13xx.c
+++ b/drivers/pci/controller/dwc/pcie-spear13xx.c
@@ -210,7 +210,6 @@ static int spear13xx_add_pcie_port(struct spear13xx_pcie *spear13xx_pcie,
 		return ret;
 	}
 
-	pp->root_bus_nr = -1;
 	pp->ops = &spear13xx_pcie_host_ops;
 
 	ret = dw_pcie_host_init(pp);
-- 
1.9.1

  parent reply	other threads:[~2018-07-01  3:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-01  3:54 [PATCH v3 0/9] PCI: dwc: Drop unnecessary root_bus_nr setting Shawn Guo
2018-07-01  3:54 ` [PATCH v3 1/9] PCI: exynos: " Shawn Guo
2018-07-04 16:21   ` Lorenzo Pieralisi
2018-07-05 19:40     ` Jingoo Han
2018-07-06  9:20       ` Lorenzo Pieralisi
2018-07-01  3:54 ` [PATCH v3 2/9] PCI: imx6: " Shawn Guo
2018-07-02 10:25   ` Lucas Stach
2018-07-01  3:54 ` [PATCH v3 3/9] PCI: keystone: " Shawn Guo
2018-07-04 16:23   ` Lorenzo Pieralisi
2018-07-01  3:54 ` [PATCH v3 4/9] PCI: armada8k: " Shawn Guo
2018-07-01  3:54 ` [PATCH v3 5/9] PCI: artpec6: " Shawn Guo
2018-07-02  8:47   ` Jesper Nilsson
2018-07-01  3:54 ` [PATCH v3 6/9] PCI: designware-plat: " Shawn Guo
2018-07-02  8:38   ` Gustavo Pimentel
2018-07-01  3:54 ` [PATCH v3 7/9] PCI: histb: " Shawn Guo
2018-07-01  3:54 ` [PATCH v3 8/9] PCI: qcom: " Shawn Guo
2018-07-01  3:54 ` Shawn Guo [this message]
2018-07-13 13:20 ` [PATCH v3 0/9] PCI: dwc: " Lorenzo Pieralisi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1530417291-30495-10-git-send-email-shawn.guo@linaro.org \
    --to=shawn.guo@linaro.org \
    --cc=Joao.Pinto@synopsys.com \
    --cc=bhelgaas@google.com \
    --cc=jesper.nilsson@axis.com \
    --cc=jingoohan1@gmail.com \
    --cc=l.stach@pengutronix.de \
    --cc=linux-pci@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=m-karicheri2@ti.com \
    --cc=pratyush.anand@gmail.com \
    --cc=sunjianguo1@huawei.com \
    --cc=svarbanov@mm-sol.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).