From patchwork Wed May 9 05:39:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10388133 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 00A2360170 for ; Wed, 9 May 2018 05:42:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E561828CB4 for ; Wed, 9 May 2018 05:42:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA40028CD6; Wed, 9 May 2018 05:42:24 +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 627BF28CB4 for ; Wed, 9 May 2018 05:42:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751364AbeEIFmX (ORCPT ); Wed, 9 May 2018 01:42:23 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35608 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmX (ORCPT ); Wed, 9 May 2018 01:42:23 -0400 Received: by mail-pf0-f196.google.com with SMTP id x9so5916760pfm.2 for ; Tue, 08 May 2018 22:42:22 -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=7Gzy065yJ02bBdodsEiBmncFRo0z2OwtH5eztDiqTI4=; b=CMfqSzDXZheG06RPG9AwMrhUoaX0neaYqv4W0FjJoz4AO5m2V4q1HS+LsZWBfmxTEz g9rqH5dOsnltpT7WaxhkiXwuIGDC4RrCS4jaR32CU2IU2Ey+e1bNs46CQAqFAlDCb7mQ 1SBZMznzCXW7n33TejS5hlTiA1lN0O7KsH3O0= 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=7Gzy065yJ02bBdodsEiBmncFRo0z2OwtH5eztDiqTI4=; b=B0Dc8sv+wpZe2D+x8hy84VpcFsoSj8cOsAjN42Y61Layxzqa6SgYB8uk2G+8J09gkF 54/wQGXF8NH4kQIrOfdgWzoK+Jn44TmA/bs+oqtS79v9d8cxEikyZ3pdvXTfY//TVucK vOlZ9qeJd6gqC4v+anzIu1q5vPOEKaF68fdbTcoEGJZdMl38u+K7VA69Uw4rQbGAYbw4 mEUrmIO/PyY37/yJNkYyzExeJh9AKSYQYLe1NeOzNQo2VfgN4sZqvCjPPFe/QGdrfuhS qYKyz7aTx+P7H5tD+5N+zyorRlQy3Xc1noL1eYv0z/wFHb10CAe4YuHRl+zqdNCOKVil jiTQ== X-Gm-Message-State: ALQs6tB9pTwsJAUW8+dZ8Eo0lRLctYNAMDiDF4/mwom2Vui1dxy5Kc2v 23PIS7MbGoypZsWLG75pzAg4pQ== X-Google-Smtp-Source: AB8JxZoc8rq9g66vLi2R4QIc3v900Rwt+mExgk4yCoORRzK0NaIZY2qOTTFocJSNdVADC0zkM6OL6g== X-Received: by 10.98.254.14 with SMTP id z14mr13377827pfh.73.1525844542716; Tue, 08 May 2018 22:42:22 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:21 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Murali Karicheri Subject: [PATCH 3/9] PCI: keystone: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:40 +0800 Message-Id: <1525844386-5433-3-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: 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) {