From patchwork Wed May 9 05:39: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: 910650 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="LZDBq6gA"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glcV1Ncnz9s1w for ; Wed, 9 May 2018 15:42:34 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752802AbeEIFmd (ORCPT ); Wed, 9 May 2018 01:42:33 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:42786 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmc (ORCPT ); Wed, 9 May 2018 01:42:32 -0400 Received: by mail-pg0-f65.google.com with SMTP id p9-v6so19262531pgc.9 for ; Tue, 08 May 2018 22:42:32 -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=O+2yXGSLdJZKfxT058g83rS3E2i5kTUhU0TYlLUH1Rs=; b=LZDBq6gAC5kdmDGuY4jMqtt6gGTCAy8H0FZcgeiO2OiREEid1OMebKEqlt21LMHNTu JAV9vpvqUX5e2hLl2BJz+qliiZuflqjkErZWDNhSNxJAYv0Xro/kLp0f7sl17g7o2ttX 2eXM8Dpdf3vSz2PjEkhCGb4+5UYf3jMemOcro= 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=O+2yXGSLdJZKfxT058g83rS3E2i5kTUhU0TYlLUH1Rs=; b=BedLz6q/vlzGDHVGbJcWsmebDOwBjRqcRz8ifrTcNq1xSPkEGcY7Ok3Ro5IZP4jiR/ J0QdH2sneogqJpPM6ILspc0NTKKyliy7bxy56sjnFwfBcNGVvGSxEA3wwx97xMsqLuL4 lAxdHSVM6+IhGMdwps2nCxeqvZ/W2Yh+zoikPT8A5iDbPsYM107MIDNrLUPlk7yz7ecl vhvoEd3p5kSFVyrxW5abF5+kNX4fSLFrdhZfjb5/iFFb+N6KJ7GAiOyg+3YglAmH1SFY ShTPy3GYbxTYSIXl1fENhFuIk+KpPrBIpwpL8g/DxOleyPKryVlRqp3eTRpkonV6IHq4 JkPA== X-Gm-Message-State: ALKqPwcmVvdrT9tIsxfrWeQeYj9jAkEIXZUR8vbfl3kxX5snAOA6+77K mYRPu9KIRZLyJM85xaKv+GaAbw== X-Google-Smtp-Source: AB8JxZqHmmDbNpdEzRLKSiGRdATraWVx5m2in+fbqi5SqLY2zK2uVdWshBiMhqWQWp7cKDDbaJs8wA== X-Received: by 2002:a63:924c:: with SMTP id s12-v6mr1848819pgn.368.1525844552475; Tue, 08 May 2018 22:42:32 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:31 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Joao Pinto Subject: [PATCH 6/9] PCI: designware-plat: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:43 +0800 Message-Id: <1525844386-5433-6-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 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: Joao Pinto --- drivers/pci/dwc/pcie-designware-plat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-designware-plat.c b/drivers/pci/dwc/pcie-designware-plat.c index 5416aa8a07a5..6e39afefd6db 100644 --- a/drivers/pci/dwc/pcie-designware-plat.c +++ b/drivers/pci/dwc/pcie-designware-plat.c @@ -58,7 +58,6 @@ static int dw_plat_add_pcie_port(struct pcie_port *pp, return pp->msi_irq; } - pp->root_bus_nr = -1; pp->ops = &dw_plat_pcie_host_ops; ret = dw_pcie_host_init(pp);