From patchwork Fri May 11 00:20:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911634 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="TLFk+Qqe"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNp2tdXz9s16 for ; Fri, 11 May 2018 10:21:14 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751209AbeEKAVN (ORCPT ); Thu, 10 May 2018 20:21:13 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:44896 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeEKAVN (ORCPT ); Thu, 10 May 2018 20:21:13 -0400 Received: by mail-pf0-f195.google.com with SMTP id q22-v6so1840265pff.11 for ; Thu, 10 May 2018 17:21: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=Zbi1w2MmxO/cThxyOtODl2zOZkgaufXV4QHXD4itBBE=; b=TLFk+QqerbbvrSota0ncK8wBvQtdpIqfgLehtaEqbZPxxGM7bhQ81bz5L7fzqA7YlW CVi7v3kb0WOmSJhy6/U5H+uK5XkjqXMQKlNf7YOznYKI7vKGvOwIbfsX5HPSHKSGAPJy WZQ1NB5+kAP39R5WPMvCK/c9XFNUOyypInRVY= 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=Zbi1w2MmxO/cThxyOtODl2zOZkgaufXV4QHXD4itBBE=; b=f51bx4s9f32yJiGUBT5bgrrugQjUvxINheqP3n+7zF5D6D8bbB9gnijx3/WNKiYQeB +dZgQlg8WjRNbVcdHXAd/kEQpOFaMM3G+NVFmOKs5JNYdt90s5Ik7rROgMDSKuOQapl1 uob2WTzN1Dn5bkeZsQP24z8Nkd3Bt3GTHV3QtqN92ZM8/M8uBaVR4Ly01glGILoPH+cr dafKqa51izUKFEKcVWUNSaAHtSdgOSooSSrCB/h7l1ChOQeiObAIwq39HE1QAh17laFH Y0VaY1XjNJohOPTLvhRREAgcaaVMy34xnEyyppsW4dD/HccjltFz4SuHxNDbuUbe6WXA XbKQ== X-Gm-Message-State: ALKqPwe1wCYWiiQ2hqhwhkWhltVjc5ynryDrbNDYKIAzURmuVmdAy9KX LAPTKxRQuIDvj1/GHfq68istrw== X-Google-Smtp-Source: AB8JxZpgr2YJly1t3JlpIk4xZWJ6jomSPGR9le4f7mllQUcxjaJ8OmRi1u8Y8txcuBmTIFh/zBfuYg== X-Received: by 2002:a62:828c:: with SMTP id w134-v6mr3266536pfd.138.1525998072695; Thu, 10 May 2018 17:21:12 -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.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:11 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jesper Nilsson Subject: [PATCH v2 5/9] PCI: artpec6: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:15 +0800 Message-Id: <1525998019-28634-6-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: Jesper Nilsson --- drivers/pci/dwc/pcie-artpec6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-artpec6.c b/drivers/pci/dwc/pcie-artpec6.c index e66cede2b5b7..af78b5c23bce 100644 --- a/drivers/pci/dwc/pcie-artpec6.c +++ b/drivers/pci/dwc/pcie-artpec6.c @@ -399,7 +399,6 @@ static int artpec6_add_pcie_port(struct artpec6_pcie *artpec6_pcie, } } - pp->root_bus_nr = -1; pp->ops = &artpec6_pcie_host_ops; ret = dw_pcie_host_init(pp);