From patchwork Fri May 11 00:20:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10392667 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 C19C260236 for ; Fri, 11 May 2018 00:21:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD54328ACE for ; Fri, 11 May 2018 00:21:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF72728DB3; Fri, 11 May 2018 00:21:03 +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 E9DDC28DD0 for ; Fri, 11 May 2018 00:21:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750818AbeEKAVC (ORCPT ); Thu, 10 May 2018 20:21:02 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:46301 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeEKAVB (ORCPT ); Thu, 10 May 2018 20:21:01 -0400 Received: by mail-pg0-f68.google.com with SMTP id z4-v6so1649352pgu.13 for ; Thu, 10 May 2018 17:21:01 -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=/Kh4LRkU0d3omEMGr6cvVaqYcGVJ6siTraFZyiNAy+8=; b=gAzwdQ0XK3hoks+l3FSi5zwWb9IZfQb4C98w+awTrKiCum3YDyBVtViWUPdC6n9mkC XkZTElX2/01pUTxbrO1DWKPJJ68jvADTp8+1yxSPp5Yz2ghoeLT9crWWDO948mH4leMp dDRL03QaaJgrnX3rEkjFvq2vc5LHYuppo3Mnc= 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=/Kh4LRkU0d3omEMGr6cvVaqYcGVJ6siTraFZyiNAy+8=; b=rgkEzWev9JU6goQqFAtwvy1IZjHG6cpUfZoBbq5LVcYI08QM91qJ2BtirQhd8+b4Bz quZtGzED09VdbPwzQOsT3mS5WMHKv7WvH3RXcZU2I/yBfGhy1ZH2is4e5csIDowUHYm6 kaz5XefR90vy2R4J/9KFPor+NQ2b4fCE/s9+j2oCLoRHJAj278sAhf029GNCT10BQPjJ NodFD5Zc2vad008oBmFUBK9FzFajBMREzYszwy6oQKK3AEzFx7QYMldAZF33manbjCYW trzCRN8hnuv3SmWuLJaVIHvZUYPcL9HI9qSFNdp6CP6Qh3SXZc4zc5QCSOXtrfLHeovt GROg== X-Gm-Message-State: ALKqPweXvJ3CJK9oacUmkukz1uoH5ELFabc/MeemYbZGJB7c2NX9ZnCM WX/TXijd+wlRf5Hx8A6o9RLpOA== X-Google-Smtp-Source: AB8JxZp9Vxa9BVWhbZLUk1Q65fIEPTLP/To0zEC//xtHFPfDVPl1L5Cv1VXreEoN7OrFkDEK2rXatg== X-Received: by 2002:a63:6807:: with SMTP id d7-v6mr2683550pgc.332.1525998061327; Thu, 10 May 2018 17:21:01 -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.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:20:59 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Richard Zhu , Lucas Stach Subject: [PATCH v2 2/9] PCI: imx6: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:12 +0800 Message-Id: <1525998019-28634-3-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: Richard Zhu Cc: Lucas Stach --- drivers/pci/dwc/pci-imx6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pci-imx6.c b/drivers/pci/dwc/pci-imx6.c index 4818ef875f8a..f330e322c1e7 100644 --- a/drivers/pci/dwc/pci-imx6.c +++ b/drivers/pci/dwc/pci-imx6.c @@ -667,7 +667,6 @@ static int imx6_add_pcie_port(struct imx6_pcie *imx6_pcie, } } - pp->root_bus_nr = -1; pp->ops = &imx6_pcie_host_ops; ret = dw_pcie_host_init(pp);