From patchwork Wed May 9 05:39:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10388139 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BBFF460170 for ; Wed, 9 May 2018 05:42:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADAB028CB4 for ; Wed, 9 May 2018 05:42:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A252928CD6; Wed, 9 May 2018 05:42:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2080F28CB4 for ; Wed, 9 May 2018 05:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752802AbeEIFmd (ORCPT ); Wed, 9 May 2018 01:42:33 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:42786 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmc (ORCPT ); Wed, 9 May 2018 01:42:32 -0400 Received: by mail-pg0-f65.google.com with SMTP id p9-v6so19262531pgc.9 for ; Tue, 08 May 2018 22:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=O+2yXGSLdJZKfxT058g83rS3E2i5kTUhU0TYlLUH1Rs=; b=LZDBq6gAC5kdmDGuY4jMqtt6gGTCAy8H0FZcgeiO2OiREEid1OMebKEqlt21LMHNTu JAV9vpvqUX5e2hLl2BJz+qliiZuflqjkErZWDNhSNxJAYv0Xro/kLp0f7sl17g7o2ttX 2eXM8Dpdf3vSz2PjEkhCGb4+5UYf3jMemOcro= 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=O+2yXGSLdJZKfxT058g83rS3E2i5kTUhU0TYlLUH1Rs=; b=BedLz6q/vlzGDHVGbJcWsmebDOwBjRqcRz8ifrTcNq1xSPkEGcY7Ok3Ro5IZP4jiR/ J0QdH2sneogqJpPM6ILspc0NTKKyliy7bxy56sjnFwfBcNGVvGSxEA3wwx97xMsqLuL4 lAxdHSVM6+IhGMdwps2nCxeqvZ/W2Yh+zoikPT8A5iDbPsYM107MIDNrLUPlk7yz7ecl vhvoEd3p5kSFVyrxW5abF5+kNX4fSLFrdhZfjb5/iFFb+N6KJ7GAiOyg+3YglAmH1SFY ShTPy3GYbxTYSIXl1fENhFuIk+KpPrBIpwpL8g/DxOleyPKryVlRqp3eTRpkonV6IHq4 JkPA== X-Gm-Message-State: ALKqPwcmVvdrT9tIsxfrWeQeYj9jAkEIXZUR8vbfl3kxX5snAOA6+77K mYRPu9KIRZLyJM85xaKv+GaAbw== X-Google-Smtp-Source: AB8JxZqHmmDbNpdEzRLKSiGRdATraWVx5m2in+fbqi5SqLY2zK2uVdWshBiMhqWQWp7cKDDbaJs8wA== X-Received: by 2002:a63:924c:: with SMTP id s12-v6mr1848819pgn.368.1525844552475; Tue, 08 May 2018 22:42:32 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:31 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Joao Pinto Subject: [PATCH 6/9] PCI: designware-plat: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:43 +0800 Message-Id: <1525844386-5433-6-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> References: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Joao Pinto --- drivers/pci/dwc/pcie-designware-plat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-designware-plat.c b/drivers/pci/dwc/pcie-designware-plat.c index 5416aa8a07a5..6e39afefd6db 100644 --- a/drivers/pci/dwc/pcie-designware-plat.c +++ b/drivers/pci/dwc/pcie-designware-plat.c @@ -58,7 +58,6 @@ static int dw_plat_add_pcie_port(struct pcie_port *pp, return pp->msi_irq; } - pp->root_bus_nr = -1; pp->ops = &dw_plat_pcie_host_ops; ret = dw_pcie_host_init(pp);