From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjxFZ-0006l6-OQ for barebox@lists.infradead.org; Thu, 17 Jan 2019 02:18:04 +0000 Received: by mail-pg1-x542.google.com with SMTP id j10so3710381pga.1 for ; Wed, 16 Jan 2019 18:17:45 -0800 (PST) From: Andrey Smirnov Date: Wed, 16 Jan 2019 18:16:59 -0800 Message-Id: <20190117021700.4443-17-andrew.smirnov@gmail.com> In-Reply-To: <20190117021700.4443-1-andrew.smirnov@gmail.com> References: <20190117021700.4443-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v4 16/17] PCI: imx6: Drop unnecessary root_bus_nr setting To: barebox@lists.infradead.org Cc: Andrey Smirnov Port of a Linux commit 39f712e989c5e591c58b65b62981b85027ba3103 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 Signed-off-by: Lorenzo Pieralisi Reviewed-by: Lucas Stach Cc: Richard Zhu Cc: Lucas Stach Signed-off-by: Andrey Smirnov --- drivers/pci/pci-imx6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/pci-imx6.c b/drivers/pci/pci-imx6.c index 9f3c9b69a5..9aa307aabf 100644 --- a/drivers/pci/pci-imx6.c +++ b/drivers/pci/pci-imx6.c @@ -581,7 +581,6 @@ static int imx6_add_pcie_port(struct imx6_pcie *imx6_pcie, struct pcie_port *pp = &pci->pp; int ret; - pp->root_bus_nr = -1; pp->ops = &imx6_pcie_host_ops; ret = dw_pcie_host_init(pp); -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox