From patchwork Fri May 11 00:20:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10392671 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 B7AE7601A0 for ; Fri, 11 May 2018 00:21:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B23A028DB3 for ; Fri, 11 May 2018 00:21:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6AF828DD0; Fri, 11 May 2018 00:21:10 +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 21BB528DC0 for ; Fri, 11 May 2018 00:21:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751168AbeEKAVJ (ORCPT ); Thu, 10 May 2018 20:21:09 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:40944 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeEKAVI (ORCPT ); Thu, 10 May 2018 20:21:08 -0400 Received: by mail-pl0-f65.google.com with SMTP id t12-v6so2237375plo.7 for ; Thu, 10 May 2018 17:21:08 -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=ABoME8P8kWzU8ETOgkUZCjBdUsv2NI2zJt4IolMB12c=; b=PRhQUt329UbmdI7kEvylmJDChQBVv2RWgsm8ObkP8xhnljlt9HcjT4LEnADUugPcSY XbxlEo9f8KqUgQfP2k7GXD7v35IAzBkKVB+k07Cq2Q4gvv/Bvn/ePGPY58qlQkfcIFHh imb/h0vUEhl1MGuvPgstNK4U/erkc3MJEnGbk= 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=ABoME8P8kWzU8ETOgkUZCjBdUsv2NI2zJt4IolMB12c=; b=n9rStacP9f1EtJPHWLyD29U300k5V6HvIKW0r5jxxC/3unOZ1l2CLtGg4rjNtJc+c/ 7ek9Of36tZsKsdjeFm5P9rgFJ2V9JdVUP3kNkLDMGraBpAlvj7vVrYxo9k+6GrLOoxHT LiIPSk/p0FyFiPQkJQH/41GNA9p54Ejg+RlOlSjmCw6FVGyiTkqC0oUtVWtvr3H/Nskv OqcmTc968yvzpGbJh8lG+agCdH2ns6SlE2BHIMGSEAjv2iumTPVI7+7q2eZiez8umtUU IAE03jtC8TRO013HPcQe1RjuXetjp5xLptzJltbkVqziqfTDi1j5HnELmcbweotZCHRo eMxg== X-Gm-Message-State: ALKqPwfGVEx6+C/ZpkHaxFxSf2gCm2JD1eRgqBhGm4OHvkNTumkW+jtX LSXnpookGPmLvgP8z6Ekwn/E2g== X-Google-Smtp-Source: AB8JxZrhiJcYsNATKXfE6DCWIUyGsO9Mq59dIfdQKlSyyUHF/zw4SlxHh12vXkOGKqI6jf49Clefxw== X-Received: by 2002:a17:902:8:: with SMTP id 8-v6mr3204963pla.287.1525998068528; Thu, 10 May 2018 17:21:08 -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.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:07 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v2 4/9] PCI: armada8k: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:14 +0800 Message-Id: <1525998019-28634-5-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 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);