From patchwork Wed May 9 05:39:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10388129 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 7F56A60153 for ; Wed, 9 May 2018 05:42:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E34B28CB4 for ; Wed, 9 May 2018 05:42:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62CEC28CD6; Wed, 9 May 2018 05:42:18 +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 03DE728CB4 for ; Wed, 9 May 2018 05:42:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752478AbeEIFmR (ORCPT ); Wed, 9 May 2018 01:42:17 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33547 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmQ (ORCPT ); Wed, 9 May 2018 01:42:16 -0400 Received: by mail-pg0-f65.google.com with SMTP id i194-v6so22170260pgd.0 for ; Tue, 08 May 2018 22:42:16 -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; bh=jG58JYh94EV7odN6cLb1ez3Cc2B0Tyxtc88bu17Zi+c=; b=UTn4JCqL4DEd9VcNv9dUsZmOlvpuhZkzu15492h4fLoArLRRYMFqLbvVn5Y5xFALv2 iJ2Kck/yA5TO8/rgGCstgbpsM+5hSe83QZw8t3bXTzn6ODfWT+07WXaf2r3pSBXw4zOJ LZCkqqmc+ZIdbIxqHaXC/oDeqqJPRxYSWicRc= 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; bh=jG58JYh94EV7odN6cLb1ez3Cc2B0Tyxtc88bu17Zi+c=; b=p/B8aIw/rmqW+o7X1hBnbbSjiCa9ITzTqzATZLjrQUVHtjFQbJEVuYTyNirsw3AWaF EkkHktTGherwxPheZDrblPYf4+D91ZUY6cjEJS3x3rPPON42dNcUYBFWnhXY9kPZWCUM mIAfV44P9aOdj2EX0vjVhZ2ZFwSDV5je6eB0zNHrC3QlyEM2v28xc29j6O2PKN+xHut6 nlqzq1rX3SeNVi47FDiSatviEySx1vDHfxzbNaWnp0YIaPxnOkKRfkcyKQy0K8CbaQMu gTap8/g/Eq0mzV/5NSoCrwGr6e4/cD+0NrU7fZMlM+wl7bCbfGyZscLEnhSrGDS4YWIR P0tg== X-Gm-Message-State: ALKqPweZu6k1qm6k+1F061D2Vdu73SzvJHxD8tmLJjPwczgt6hwT/tmi CgsEEsrQL/p9DDLo/POsY6p4Mw== X-Google-Smtp-Source: AB8JxZqQxHbxKIrl6v1TKoZG6dWDFmmTntDz9FUM49PUWzesCZrtvcEfr8GaBxV20ko2vtx6rMRU3g== X-Received: by 2002:a63:9e53:: with SMTP id r19-v6mr2380033pgo.50.1525844535942; Tue, 08 May 2018 22:42:15 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:14 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jingoo Han Subject: [PATCH 1/9] PCI: exynos: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:38 +0800 Message-Id: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 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: Jingoo Han --- drivers/pci/dwc/pci-exynos.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pci-exynos.c b/drivers/pci/dwc/pci-exynos.c index 4cc1e5df8c79..cee5f2f590e2 100644 --- a/drivers/pci/dwc/pci-exynos.c +++ b/drivers/pci/dwc/pci-exynos.c @@ -421,7 +421,6 @@ static int __init exynos_add_pcie_port(struct exynos_pcie *ep, } } - pp->root_bus_nr = -1; pp->ops = &exynos_pcie_host_ops; ret = dw_pcie_host_init(pp);