From patchwork Wed May 9 05:39:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10388131 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 5ADBE60170 for ; Wed, 9 May 2018 05:42:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D01328CB4 for ; Wed, 9 May 2018 05:42:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 406E128CD6; Wed, 9 May 2018 05:42:22 +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 01F2728CB4 for ; Wed, 9 May 2018 05:42:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751397AbeEIFmU (ORCPT ); Wed, 9 May 2018 01:42:20 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:33195 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmT (ORCPT ); Wed, 9 May 2018 01:42:19 -0400 Received: by mail-pl0-f68.google.com with SMTP id n10-v6so532596plp.0 for ; Tue, 08 May 2018 22:42: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=sFGpsy6UTm/d4Za093emxYJEwzCl25vVelI3Wfa4DuM=; b=RB263P8lXeUV/fnqBK+tn6c47DVdZ3mvy5D8xMWcG/JCGoONBGJgTREI4/p2QYhTGJ Mn2V8GMwnGgZhxzY/IaLf3g2x2PPQY5ClKS7gQvXLrgGAxey7TZm0jHULZ/oCfkv06bH HHUHUZACvbEiBXXtVzPsXQJRLNbLGjYWMioyM= 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=sFGpsy6UTm/d4Za093emxYJEwzCl25vVelI3Wfa4DuM=; b=S6l6KoSvEKrn6hvbYmIFsodwejnIIlGKXSx8XsD77MjPIw6FqdToAq5e4CU2qggl1H PTMYgR60QFh9QyWMd9RB97IBhCLu2bGzFhUnPKU2STO8sC3wRlxqK9fK4KNvt4oIaMu+ 6/aT687ekLmTgTTKzgLO8JXwPdxQtwdMx+Z23tIwzwvj5+sTg3Kp5aVBNNmFjNpR9Dq2 EWTCypqemkXbwP6LN+VY67ZeVGd6zRhAn7fTgQfU0pq35fM8+Y15UZXINndK2/brZm0v 99iTd9xmTWOXxRB2+asdVebcFBTTCPoTLzxGqSP0ANm9MIaTfEC/cuhwZnhB6s7YxJQh E6IQ== X-Gm-Message-State: ALQs6tC1GnJE2/b9G42WHFLWLUYy/Jlf2XY7G7Ny/zt6hS3C3I0Gnx3M WWuChagBnb4DBNeU7PjfZyHChg== X-Google-Smtp-Source: AB8JxZp8I3Vk6pfIqWlVD0WRe1juavfUtvRhxpECNQlpIj76t0iEvOcYLAD1S5foGfKW2HAVqwFFXw== X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr21327785plo.329.1525844539375; Tue, 08 May 2018 22:42:19 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:18 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Richard Zhu , Lucas Stach Subject: [PATCH 2/9] PCI: imx6: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:39 +0800 Message-Id: <1525844386-5433-2-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 X-Virus-Scanned: ClamAV using ClamSMTP 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: 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);