From patchwork Fri May 11 00:20:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10392669 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 7608360236 for ; Fri, 11 May 2018 00:21:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7187728C2B for ; Fri, 11 May 2018 00:21:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6657C28DC9; Fri, 11 May 2018 00:21:06 +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 D5E6F28DC0 for ; Fri, 11 May 2018 00:21:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750858AbeEKAVF (ORCPT ); Thu, 10 May 2018 20:21:05 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:35816 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeEKAVE (ORCPT ); Thu, 10 May 2018 20:21:04 -0400 Received: by mail-pl0-f67.google.com with SMTP id i5-v6so2235316plt.2 for ; Thu, 10 May 2018 17:21:04 -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=5ChVu9j+zuVg6iI2exGFbBxsEuWmhIev844o/EXySsk=; b=d9uP0yqEKEvYiccBk6s1oIN6xDMK6PBdiAvOkhxRvqNE+7mYpMZVmFfj80VcTXZaYF sYOVLRJg9gyqOm+EpeV+p03Glu7K53w/jgj9t0zn5w9u/UI3saZPnDR5kNOh/nIPfpkW bF1EH+27zL71IA+kvq/h+t8Oma4xp2mfV29R0= 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=5ChVu9j+zuVg6iI2exGFbBxsEuWmhIev844o/EXySsk=; b=qQjancCRPxOyYtM4yKGXdTkdy2tbLhai0wiB39MXal7I/kTdix/hknLGr4ie24CYvY 6L2qrvRch/dqXPzSxaERWsn1p+2Sk8fA4cv/VBSbA42/sHrO7X8lKufgp/3ifkwX8DW0 VKhhLIBW1Ki8iwusJQcWKopFouDFGMQZ18bAVFG67+uRLFYxn31Lk7wyoOIgrJeKM46M ncoCmOtTzIcgSBfp5Gm+YlaUXXEzwWBMGEU5F+YdQiGY4DtM9q/tHwKfQeGiBsR9Hc/4 dOz5kCXiWBboEqNLbuDXGhFHmQhHbFSzShj4xfK9Muoj0aai1BREg++UQQABpZROqiKD u2ow== X-Gm-Message-State: ALKqPwfHKFTwoB1eGguUgBgHlZNaH9Gcu+M4EuY617BYjTHLvhML2r91 nJb8dPnCdAnmCcIH3acpG0Nn5g== X-Google-Smtp-Source: AB8JxZpirfhueRFkPTLSPcs1Kl0bO2n0AX10oIWVlOwn+ZGaYUvuKhxCH3fnpvEA6m9jQAladEnmaA== X-Received: by 2002:a17:902:1a6:: with SMTP id b35-v6mr3290543plb.80.1525998064207; Thu, 10 May 2018 17:21:04 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.21.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:02 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Murali Karicheri Subject: [PATCH v2 3/9] PCI: keystone: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:13 +0800 Message-Id: <1525998019-28634-4-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-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 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 Cc: Murali Karicheri --- drivers/pci/dwc/pci-keystone.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pci-keystone.c b/drivers/pci/dwc/pci-keystone.c index d55ae0716adf..6ca80a21969e 100644 --- a/drivers/pci/dwc/pci-keystone.c +++ b/drivers/pci/dwc/pci-keystone.c @@ -347,7 +347,6 @@ static int __init ks_add_pcie_port(struct keystone_pcie *ks_pcie, } } - pp->root_bus_nr = -1; pp->ops = &keystone_pcie_host_ops; ret = ks_dw_pcie_host_init(ks_pcie, ks_pcie->msi_intc_np); if (ret) {