From patchwork Wed May 9 05:39:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10388135 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 DAF5E60153 for ; Wed, 9 May 2018 05:42:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBD9628CB4 for ; Wed, 9 May 2018 05:42:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C085F28CD6; Wed, 9 May 2018 05:42:28 +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 982AD28CB4 for ; Wed, 9 May 2018 05:42:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752605AbeEIFm0 (ORCPT ); Wed, 9 May 2018 01:42:26 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:41944 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFm0 (ORCPT ); Wed, 9 May 2018 01:42:26 -0400 Received: by mail-pf0-f195.google.com with SMTP id v63so25063308pfk.8 for ; Tue, 08 May 2018 22:42:26 -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=ffs8TOlcfgicJNSsD93v0IbpCOX+gDlvd88ja61pPN8=; b=S87KnjRaQRjAZlpMaqjYgJPy8lLRiaATZcL4x7M9xcddX+rNn7DPLGgQqCmmzKfoJZ Y6WeU6/9AcarfqSKhQEFYhx7r2OsqmuvJZLuQVsqE0fTzDhtBan/NH4jvrqkgo9Prtng e3mblGZ++Q6J5W+tGsObTUcRE/pmKhqTdfwJg= 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=ffs8TOlcfgicJNSsD93v0IbpCOX+gDlvd88ja61pPN8=; b=blutsSwyAJNx5uFvqRyc1eAQjB/ybbBkb1xkjRlnaPHj/nqNqWKxroDqogjCYhOpmC +pZ3B1x87ASSDs3rhEjA8fkK33H3VFnMMkxSUuHJtzmEpjDJlelEuPqyEuINR39L+UH/ LnO/t4u11DMuIJATdXsQ58f00/mjl1l8pGUtBiXAMJSiA6DEK6t9Wg7T6vyZqW0T66fe gN42yaWb9gPsK9312omoCMRNou4yeuncw1VrB+bmn6f0f3L5WLQRm2RlckYVHLqCWLOl 1C77vTjdVdmo/UoUmQUWMKdvrfQiWA7MIAnr+RvxwRkdPldut0XMibGSINbIlPAG+Ldv LkFQ== X-Gm-Message-State: ALQs6tAECCD/9nFQQSZ1XFj9LYARplqXt2GwITKMoSJGh1fNeKSUTM2c 8CIEAIArrgV1gE2QQvznH8Df2Q== X-Google-Smtp-Source: AB8JxZrgfGLZxOr5R7Il8e6RzlB6ziTDYAhY2DdzIUh3lqDe3yNQY5PDMnb71jEdTM4iM0TORN0eUg== X-Received: by 2002:a63:6185:: with SMTP id v127-v6mr34560519pgb.441.1525844546027; Tue, 08 May 2018 22:42:26 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:24 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Thomas Petazzoni Subject: [PATCH 4/9] PCI: armada8k: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:41 +0800 Message-Id: <1525844386-5433-4-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: Thomas Petazzoni Acked-by: Thomas Petazzoni --- drivers/pci/dwc/pcie-armada8k.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-armada8k.c b/drivers/pci/dwc/pcie-armada8k.c index b587352f8b9f..2d8eb88fd4f8 100644 --- a/drivers/pci/dwc/pcie-armada8k.c +++ b/drivers/pci/dwc/pcie-armada8k.c @@ -171,7 +171,6 @@ static int armada8k_add_pcie_port(struct armada8k_pcie *pcie, struct device *dev = &pdev->dev; int ret; - pp->root_bus_nr = -1; pp->ops = &armada8k_pcie_host_ops; pp->irq = platform_get_irq(pdev, 0);