From patchwork Fri May 11 00:20:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10392665 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 3A1CC601A0 for ; Fri, 11 May 2018 00:21:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3360C28D6E for ; Fri, 11 May 2018 00:21:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27F2A28DB7; Fri, 11 May 2018 00:21:00 +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 ABA8A28D79 for ; Fri, 11 May 2018 00:20:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750806AbeEKAU6 (ORCPT ); Thu, 10 May 2018 20:20:58 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:40959 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeEKAU6 (ORCPT ); Thu, 10 May 2018 20:20:58 -0400 Received: by mail-pf0-f196.google.com with SMTP id f189-v6so1844009pfa.7 for ; Thu, 10 May 2018 17:20:58 -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=nT3Snifsxsm5bRINVcD2HlqwFELTcfL5a4bxWmCCxuQ=; b=BSDDfQpz0VEWyBVqGiQ1fNcCz80vTGgf0uG8I+l018LGihGPFetWk+Dm0LEN1b1gyp Ddke5finyJnnVr3UZvcdjmu2uq/S9NP+DyB0I6+hRM+iuhniTXpjM+v6cS48jVifROu8 pkH1WHXcBB/K+0S0Ofot1R1kUch9XPPQnvTjk= 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=nT3Snifsxsm5bRINVcD2HlqwFELTcfL5a4bxWmCCxuQ=; b=rkjfnO2GRwvfe7WGS0X7/m6z7pwxHqElC81adaq8+V0A9wRG17i7mHiYxdGcGMFo8F vx22lcwa3g8Gm+zI7XXqy4xXqPdW13Tu2mvFdymfZmB9Smf/28S8NuGZUBPqIiHR5b8y nYtx7wnwwY/b1UshmXEVeISMlAJqUvt8QmGYJ8/LeXJHy71NT9ubO6Pco40fVCPQ4Ej0 Fk6B0QpkB0J2vKF/wFpuJ8ZAYDnqNd73QlE7cGQiUnzY/YLS4I6x8jobJsqM0GkJsqmJ QzatEXYQkU8mD73ThXrGk0/Qy0xmoZpDnr7nDYGBQO8Ob2m1tiD0yiotBShYe1mgLknW xGBA== X-Gm-Message-State: ALKqPwceN3k/UiPzRn7cCBChecrFNb0gLLHf28Ivm6T3KwbPMg2Hgpmz uxfX95S5QfLz+LLfF/HGi87c3g== X-Google-Smtp-Source: AB8JxZr7ewn9vL7Psu3+xcGz0C+XUOP1Gh9F0/du/JqcQADEjk9kdxsZzzNWxbErr0P4o/C9ntibfw== X-Received: by 2002:a62:9c0d:: with SMTP id f13-v6mr3245278pfe.15.1525998058017; Thu, 10 May 2018 17:20:58 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.20.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:20:56 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jingoo Han Subject: [PATCH v2 1/9] PCI: exynos: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:11 +0800 Message-Id: <1525998019-28634-2-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 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);