From patchwork Wed May 9 05:39:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10388141 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 CD32060170 for ; Wed, 9 May 2018 05:42:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF33028CB4 for ; Wed, 9 May 2018 05:42:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B38DA28CD6; Wed, 9 May 2018 05:42:37 +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 3F57428CB4 for ; Wed, 9 May 2018 05:42:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752907AbeEIFmg (ORCPT ); Wed, 9 May 2018 01:42:36 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:40433 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmg (ORCPT ); Wed, 9 May 2018 01:42:36 -0400 Received: by mail-pf0-f195.google.com with SMTP id f189so25061943pfa.7 for ; Tue, 08 May 2018 22:42:35 -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=sV+EbECabVB4hAV24O7X0YJY8k0U5zNkdvgQQ0HaixA=; b=a2yQbVMRLZ7dI8ouPoeQX2k0fEeVq5plJd40Zzm3tmYbBeYn0CaPCO0+DeyDScTVww YU+XpQvOy511Ajr4hBH0SEKV9u19ZLbxsPwv+YktLKeICmjICtIOL+MxWraAMJG8BVKn weTKUvDwbrZoDbHZ4wZThmxdkX5VR5U2nGP3E= 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=sV+EbECabVB4hAV24O7X0YJY8k0U5zNkdvgQQ0HaixA=; b=egoq5aXC/ozns7l8rKpSStNVQfvqhO39qf3jRt0elC2df1HuJFu9eGzklx9ncqJzfa Q4oZDd6WEY9ElxXnd1Mzgc68dYi4OlmhDqvMafkIDtf1XzoIC8AG3ZEJN3J7if1T51wW F8wgH1FNM43J2grRIeZm5vgBmMm9KWMVp6kvF+GcavHSL+/p9tbrl0dg6hxbdxHE53xe oeRdO1oAUpaVShgccQfsH2aB4OoTWSkFJA8U3a/MzAZU/nfiM0V7RHTz+/ubhnTSbJ3t A67QJRQtMre19fhWCglGmq9CrVRe851h6djpBJJYjCICBbzwou7eXOwd+Uev7yrC0WT0 f5cA== X-Gm-Message-State: ALKqPweiqK0YPwHM/nUfBLGZ8aEIt4swqb3H22XOCZSMHWYENl+y5vrx Ch0pfJGOahw2zy7ce3YQuxiW7M5VBVE= X-Google-Smtp-Source: AB8JxZobTd5/wAqMH198CEO96owBWAquKa+i93k02oBrHx0+Dnqf4W0FlN/72iR9VOkbt72s4FXU9w== X-Received: by 2002:a63:9e53:: with SMTP id r19-v6mr2380672pgo.50.1525844555678; Tue, 08 May 2018 22:42:35 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:34 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jianguo Sun Subject: [PATCH 7/9] PCI: histb: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:44 +0800 Message-Id: <1525844386-5433-7-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: Jianguo Sun --- drivers/pci/dwc/pcie-histb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-histb.c b/drivers/pci/dwc/pcie-histb.c index 3611d6ce9a92..7b32e619b959 100644 --- a/drivers/pci/dwc/pcie-histb.c +++ b/drivers/pci/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);