From patchwork Sun Jul 1 03:54:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10498497 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 ADC7D60284 for ; Sun, 1 Jul 2018 03:55:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E6CD28A59 for ; Sun, 1 Jul 2018 03:55:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9250928A5F; Sun, 1 Jul 2018 03:55:49 +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 6DAEF28A59 for ; Sun, 1 Jul 2018 03:55:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752237AbeGADzr (ORCPT ); Sat, 30 Jun 2018 23:55:47 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36325 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752224AbeGADzr (ORCPT ); Sat, 30 Jun 2018 23:55:47 -0400 Received: by mail-pf0-f196.google.com with SMTP id u16-v6so5960970pfh.3 for ; Sat, 30 Jun 2018 20:55:47 -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=3uyUewAEdKm3y6fVEpucCsXGlz14rFRdwnt4Vgl4weM=; b=Z7iMWQhDdFMPWuI6sJUlXL/1XqqmuXEjr1DJ+mPPf/98yoWA3bRQ+/F8AtlYjr3b/S W/TCINgXeLaWFDwZGR9OjsCHoxAeESrsGZheDA9qv1bCoIc3GTEnH7w7wBSNRJdbz1e3 ceN5xizwMKdrpuHaJ5XZVK2gvRTJ1/yb92K3I= 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=3uyUewAEdKm3y6fVEpucCsXGlz14rFRdwnt4Vgl4weM=; b=TgsBtE6NA4nyjfnYShbPkco8lcxQJ+dcrnSzSl2w91DaOGxj+fUmDDr4Yv/BkEDfCp pokm8Yr13qJSFY78Qbm7gaL/sBYZfoGHCMuB425D2/NgwovjjtmdZQmGLFGUXmGEYbhP n2kYz+ZVReLv9ysiskn2M5koAfGiF4Opn0DMXstsaeActh9kiCzPqyBtzcLna35lVRHI Q5UJDvt7SmiGLu7Gmp8G1bxhJpXyuCN5CUPY+yMZKCuSiVj3H8ockxNzKkBTxeFPJytZ 4A5EeJ+A6iND7u98rbSCC9xRoJ4JGiY43ZdF4dZ22WS8o4BfOsX+tjKFKhQ1Rh3OevqG cz5g== X-Gm-Message-State: APt69E0QDllltd38mlsKizCKfQOvA0Ql0WEmHz7p4QTRdsCTRCegkBNX vI8gCfyIjHJuD7d1CTHvdjdYCw== X-Google-Smtp-Source: ADUXVKIzaISD8ZpqzWyHGDMbNRWBpmVM2mf4nmwpgLMhcZcaiked4pGWsoAAfoGRF9du8DeL2XVQOQ== X-Received: by 2002:a63:9311:: with SMTP id b17-v6mr17580939pge.261.1530417346869; Sat, 30 Jun 2018 20:55:46 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:45 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 7/9] PCI: histb: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:49 +0800 Message-Id: <1530417291-30495-8-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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: Jianguo Sun --- drivers/pci/controller/dwc/pcie-histb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-histb.c b/drivers/pci/controller/dwc/pcie-histb.c index 3611d6ce9a92..7b32e619b959 100644 --- a/drivers/pci/controller/dwc/pcie-histb.c +++ b/drivers/pci/controller/dwc/pcie-histb.c @@ -420,7 +420,6 @@ static int histb_pcie_probe(struct platform_device *pdev) phy_init(hipcie->phy); } - pp->root_bus_nr = -1; pp->ops = &histb_pcie_host_ops; platform_set_drvdata(pdev, hipcie);