From patchwork Wed May 9 05:39:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10388137 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 3EA8A60153 for ; Wed, 9 May 2018 05:42:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FB9228CB4 for ; Wed, 9 May 2018 05:42:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24D1A28CD6; Wed, 9 May 2018 05:42:31 +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 755F728CB4 for ; Wed, 9 May 2018 05:42:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752679AbeEIFm3 (ORCPT ); Wed, 9 May 2018 01:42:29 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:35085 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFm3 (ORCPT ); Wed, 9 May 2018 01:42:29 -0400 Received: by mail-pl0-f68.google.com with SMTP id i5-v6so3625738plt.2 for ; Tue, 08 May 2018 22:42:29 -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=NzOE+gKkRUbCOF0uvC4Tbpz9bUENOhiXgoSBIQ42H5M=; b=XJK8jrKJIpIZD6wV3oL3w8h+DmDZttYFLqZDj2kw7daS3F3g2nUF0rgorKA75LYA6w 312IW8IRsygs5J1X6lic+podufXhx9aVYD7Wf7AKnje+148fzne4KNkqwm3hf1177/fn 4ku1LKoNkDBJFIfUeMRZsQLoifnAYJcIEfXSs= 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=NzOE+gKkRUbCOF0uvC4Tbpz9bUENOhiXgoSBIQ42H5M=; b=G6NbnMDn5cgQ+P1MRsl5AsawzDFqywL4kWqOacZAPMO4fKmDGI6mKJewnrvNW192LG xeEHJYMLFXtAlulPa2Cr4F5hSAR2m5mciF8TLahev9CGPYWAOJQUgqokvpJZ6S8LdV7r D5hQnji4TpaXp1jhAWUt8RIVLCB2RTXH4Vwv1gs69bvQ+0Nwltexl9fVNY1eZ6W+zX/E Ub7I8pJoDLyPEQx2zVYdvN/ntEQ1Asap0x01DWYwgkrmWektyjrnKdRswHPOzSp/+JoV eRMCoJMWZGdigQrSjj/LUP+lZ41qSs1QtWhbnCen2qfALiuhRiGzVbMdgc6pDQQFQ4bi jekw== X-Gm-Message-State: ALQs6tBeFRSkJHsl3DZJ8f17/WWhmB5jm9d3cPEFOvpMIN7h0eZY9ooK vipDPwuMTq1+fyp7PTLiWK+Jmg== X-Google-Smtp-Source: AB8JxZqkK1Iy47aQjs4SHL3ITdl7ZzM5svm0aRYQ0Efu/UTSf7L84yViBEFXOZRcTNHqeIeWHZfPkQ== X-Received: by 2002:a17:902:20eb:: with SMTP id v40-v6mr43960825plg.277.1525844548849; Tue, 08 May 2018 22:42:28 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:27 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jesper Nilsson Subject: [PATCH 5/9] PCI: artpec6: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:42 +0800 Message-Id: <1525844386-5433-5-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: Jesper Nilsson --- drivers/pci/dwc/pcie-artpec6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-artpec6.c b/drivers/pci/dwc/pcie-artpec6.c index e66cede2b5b7..af78b5c23bce 100644 --- a/drivers/pci/dwc/pcie-artpec6.c +++ b/drivers/pci/dwc/pcie-artpec6.c @@ -399,7 +399,6 @@ static int artpec6_add_pcie_port(struct artpec6_pcie *artpec6_pcie, } } - pp->root_bus_nr = -1; pp->ops = &artpec6_pcie_host_ops; ret = dw_pcie_host_init(pp);