From patchwork Sun Jul 1 03:54:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10498485 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 3F73660284 for ; Sun, 1 Jul 2018 03:55:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DE8C28A59 for ; Sun, 1 Jul 2018 03:55:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 214BA28A5F; Sun, 1 Jul 2018 03:55:14 +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 BE5B128A59 for ; Sun, 1 Jul 2018 03:55:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752185AbeGADzN (ORCPT ); Sat, 30 Jun 2018 23:55:13 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36303 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752181AbeGADzM (ORCPT ); Sat, 30 Jun 2018 23:55:12 -0400 Received: by mail-pf0-f195.google.com with SMTP id u16-v6so5960727pfh.3 for ; Sat, 30 Jun 2018 20:55:12 -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=w7vl3ObFMJ7/qnFRgsWtSWHUmSvQZ7El0LqSgR2rnW0=; b=dgOJB0h11tRSeijKDnHPPc8jzq0zeHeSFH7gBfBFEuqlbaniorT+XuKBBgy86DHA4u Kttq1jYgX6i3zAjisDA4sr0BpNA5fM3JibeQNvKgC/B3whSoDMPYUc62tBZXnJjzBxtS rgfNaQun5bv7jZ+NX13j1gNg5QgEK8xGxS+vM= 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=w7vl3ObFMJ7/qnFRgsWtSWHUmSvQZ7El0LqSgR2rnW0=; b=f8xphqqpCrhqkRRQkaUm2zduqtFHZKdmkWZN81vAeJtvAQ9yVGpstqk25gQXxfiOwF nC3FFQz/4dri3t/iR01opnGU/aBPnNkkaOEJuUQ4F8OU0vsK5mfuzoBkt001VfwmEEn6 gUjZebfihUzYIupdGSYFhvZ3cF+JWBt5fskkGF3jQx6kA0xmD2nckgUWdF8ktZeN7pHJ en195mHV1ccwonxHlhsiNzZZmNirmiSv4rkcHhqadUJN4WtFTzgQt11d6HmiQicNuEI5 Sd+wCxypLK4xKV/EL/UocuByBO8nieukjLiOyXoBfwhZMAHPJrYmeMAw9nx4V+sGLxLg vtvw== X-Gm-Message-State: APt69E2qaam0d6b8JOnojIzWnMFbOBazHFnTSDxs9HHsm+wrhVenxjU4 F1yhrx7LjDKwniVpcCNDxtQfEA== X-Google-Smtp-Source: AAOMgpfgPDq/CHAh06lELvngC712rxvOrUcYKbJc3yhGveAvx9aRgPBeaIYyTb2Ol2LZBAltn5+fwQ== X-Received: by 2002:a62:c61d:: with SMTP id m29-v6mr20526700pfg.26.1530417312138; Sat, 30 Jun 2018 20:55:12 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:10 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 1/9] PCI: exynos: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:43 +0800 Message-Id: <1530417291-30495-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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/controller/dwc/pci-exynos.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-exynos.c b/drivers/pci/controller/dwc/pci-exynos.c index 4cc1e5df8c79..cee5f2f590e2 100644 --- a/drivers/pci/controller/dwc/pci-exynos.c +++ b/drivers/pci/controller/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);