From patchwork Wed May 9 05:39:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10388143 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 313B860153 for ; Wed, 9 May 2018 05:42:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2210828CB4 for ; Wed, 9 May 2018 05:42:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16BC928CD6; Wed, 9 May 2018 05:42:42 +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 8B9CE28CB4 for ; Wed, 9 May 2018 05:42:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753032AbeEIFmj (ORCPT ); Wed, 9 May 2018 01:42:39 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36165 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbeEIFmj (ORCPT ); Wed, 9 May 2018 01:42:39 -0400 Received: by mail-pf0-f195.google.com with SMTP id w129so19650607pfd.3 for ; Tue, 08 May 2018 22:42:39 -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=4l//8m9C9KGIAOeq4mhWSz6Y7FrBGYw3iAVvfyvaDew=; b=KMhSfHBBaN9yH8J1FOeRrWauxM2TYvPnW0E5C7aHQLVbxG4g9QocH0w6mFIF7ZnDmR s3wctX1MLH53IibOGP4oyuXVP9AW5kPLJmV74K/UON1PD3R7szpEd1hN12HzRzLxqPdt Nx7jZBvTOzLfeYzxIyTL77sRWwsEKhZJMuA90= 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=4l//8m9C9KGIAOeq4mhWSz6Y7FrBGYw3iAVvfyvaDew=; b=IDS55OxCF/sAXb72pGOULHPI5fKQf9AwTyXJ5xPBHbV15Jrv1yGeQ7hzYJ++QvW9jX 8IoXFM7tpQX/cQgJEig4o2khcZQzM+ICX/C9hsA8jc4zHLgkOEc5pLQzDLSl7ricwugF 8rZvwTUnVVLWSM3A7HvYcs9FIYMzozWc3VAVb0dHLmw2HNWRcdVi49QWuKMqn6lfN99B NPmia49tAPr4YG1FJy65njtky4MZd+2ZpOI91OmD/ysNRIREi/pOE1LEU4PfFn2iu6VU Ee1Hoa13kz5d8Ni7Prba05S+WDN5HN0BpYTQPtBwk82mPX8YrorGqf8wQ7PzL64Vpfy5 ZlDA== X-Gm-Message-State: ALQs6tBhzACiWMDBKiCzn6FR2qmRbtWjXLiFAALdc3TVTUxCO6x4MfD8 oqKHfHIzz2Ctv/HMlHLFIKbDaHsAnUk= X-Google-Smtp-Source: AB8JxZqEdK5VxCYm2VOJD2/pZkipLOYYxfwcko+mP/rVynDhHULKaS8HfZfbBLc0jWRZPjV1k0anjg== X-Received: by 2002:a65:5d51:: with SMTP id e17-v6mr34727119pgt.100.1525844558946; Tue, 08 May 2018 22:42:38 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:37 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Stanimir Varbanov Subject: [PATCH 8/9] PCI: qcom: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:45 +0800 Message-Id: <1525844386-5433-8-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: Stanimir Varbanov Acked-by: Stanimir Varbanov --- drivers/pci/dwc/pcie-qcom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c index 5897af7d3355..a32aa024e907 100644 --- a/drivers/pci/dwc/pcie-qcom.c +++ b/drivers/pci/dwc/pcie-qcom.c @@ -1247,7 +1247,6 @@ static int qcom_pcie_probe(struct platform_device *pdev) if (ret) return ret; - pp->root_bus_nr = -1; pp->ops = &qcom_pcie_dw_ops; if (IS_ENABLED(CONFIG_PCI_MSI)) {