From patchwork Fri May 11 00:20:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911636 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="MKTmlBGh"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNw5dK6z9s16 for ; Fri, 11 May 2018 10:21:20 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751263AbeEKAVU (ORCPT ); Thu, 10 May 2018 20:21:20 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34625 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeEKAVT (ORCPT ); Thu, 10 May 2018 20:21:19 -0400 Received: by mail-pf0-f196.google.com with SMTP id a14-v6so1850607pfi.1 for ; Thu, 10 May 2018 17:21:19 -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=gYngF90GbZKs/ThXSKrEYv59+uzk9oQk7drU4Qc4HMU=; b=MKTmlBGhv32ixtXHOJd9SnQSf2GU0+sWT/XW/+GclgAe/pmwCjbHZOdONb8fFkpbn3 wE330LWEfl2xpjWiE8PSGWubqiydRxetPtGAL73cnwvkOJfyuxDy/vobDzILYWo/7V2F Olng4AiIXxloHeJooNeIicsXF5cBrOFo8iy2Q= 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=gYngF90GbZKs/ThXSKrEYv59+uzk9oQk7drU4Qc4HMU=; b=Kvv820/O5IqzP+Iy4LKAtdQiCaeO2w5U3sWFfqaTakDhKJwdyl18muIJhlbdbrBdCf tPWwkEUA+RsENkUsAOAOAw1HTgWqttDWI8S58Kna3nFYbr/uaEXm0WH77ElFw1GUVPcN g4dMqSsIiAGDKErQ6ChqZ1M79BMe49/RZ3YdtFTGG6u9U36roivqIypi076gkKf4891U ELVzLN6FpINth1eAY/QcDZOA7Zbe5qcupwqpoViVcBWb2HbzVpDGiwzW/EHTiqhcbby1 sbGG1ejASBSmmhuwp/XgsyhndSDsyuiY8H45WYTN61gZ/E7Bej6cW58DSFDjU2uiHvM7 jpYQ== X-Gm-Message-State: ALKqPwfoQ197p9Jt5ddGLv5Dar92qc09yGL06EeqIauELV93PLZTDADh bowSsIbgN1aLpSY7QYopP/fRzQ== X-Google-Smtp-Source: AB8JxZowlSmtdQ3QzU29Jx9EW8Qfy/Xd2/MOqpL8PbNv9fvXkJjYTsa1OKzTpA1kP3bW33MnJpH9qw== X-Received: by 2002:a62:ba09:: with SMTP id k9-v6mr3259054pff.245.1525998079021; Thu, 10 May 2018 17:21:19 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.21.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:17 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jianguo Sun Subject: [PATCH v2 7/9] PCI: histb: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:17 +0800 Message-Id: <1525998019-28634-8-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 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: Jianguo Sun --- drivers/pci/dwc/pcie-histb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-histb.c b/drivers/pci/dwc/pcie-histb.c index 3611d6ce9a92..7b32e619b959 100644 --- a/drivers/pci/dwc/pcie-histb.c +++ b/drivers/pci/dwc/pcie-histb.c @@ -420,7 +420,6 @@ static int histb_pcie_probe(struct platform_device *pdev) phy_init(hipcie->phy); } - pp->root_bus_nr = -1; pp->ops = &histb_pcie_host_ops; platform_set_drvdata(pdev, hipcie);