From patchwork Sun Jul 1 03:54:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 937499 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="N9aDR/jU"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGkd1sVNz9s1B for ; Sun, 1 Jul 2018 13:55:37 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752223AbeGADzg (ORCPT ); Sat, 30 Jun 2018 23:55:36 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:46158 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752216AbeGADzg (ORCPT ); Sat, 30 Jun 2018 23:55:36 -0400 Received: by mail-pg0-f65.google.com with SMTP id q14-v6so5637137pgt.13 for ; Sat, 30 Jun 2018 20:55:35 -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=Z0t4Ylv2lHdiYi6pdUgG448S9PewGUgyx+o3fva1U7I=; b=N9aDR/jU06W8IxazWXDiurSVxRU72pFu01FevHh7l9zEHuUBft7mgbPkSI1vKstP3L DTATuqYug0krxaDgtQ86F21pl2TQqjKFsjCuCBS1pjHi5yGTWUgIgeK8IpkvpDw5kCGN cxaOxHiIl/TZ9DTz/pCMQLOKehL0DJnw4n3qg= 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=Z0t4Ylv2lHdiYi6pdUgG448S9PewGUgyx+o3fva1U7I=; b=g6Rn3DMOigBFNL6dZoITHWXYgsWqfUnJ6FTT5SWwKiU+EhW1FWZ6Y5/03XZHLKFp7U Fkfgh6phWxCv6YX/J9mFYBPxdfWnXLvo9UbIIdU3f4xXEOQnL+UJcVAidJwY/LBO20kO G001HkCdL1tjUlanobVx7s662IjRldq+8a4/Z7kpQfqMY96CjKhorXKQTkje5ZgafCO/ cUuGFd2rp+5rh/Jtn5OcDhxDp3Bu8Iqm8dOpuV0G/RpanD0D2As3HFy2o2Q/RefNO4N2 /QEGgMNvwNfouNI6lTYJdY0yqHcVFRlhLToh+MNwr3q2jjBDwT2KaUUXC0aQGjhLVrYj 0hXA== X-Gm-Message-State: APt69E0VBdLHOqCjO9S9rEPp9Bhv3iFAHLQXpQhgr8Lnvadz0gUKxTMw DOfECSeu9VHyBqQQrhNoMGXeEQ== X-Google-Smtp-Source: AAOMgpe6OJKE9HOz35IbWtaVvIQPTgybOvs/yWymfHmqcsG9796juOnJbA3X/YYAPAwxhhiUe4BteA== X-Received: by 2002:a62:2ec1:: with SMTP id u184-v6mr20580579pfu.184.1530417335562; Sat, 30 Jun 2018 20:55:35 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:34 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 5/9] PCI: artpec6: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:47 +0800 Message-Id: <1530417291-30495-6-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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 Acked-by: Jesper Nilsson --- drivers/pci/controller/dwc/pcie-artpec6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-artpec6.c b/drivers/pci/controller/dwc/pcie-artpec6.c index 321b56cfd5d0..128b182648b3 100644 --- a/drivers/pci/controller/dwc/pcie-artpec6.c +++ b/drivers/pci/controller/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);