From patchwork Wed Jun 21 21:53:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 106129 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp2149692qgd; Wed, 21 Jun 2017 14:55:10 -0700 (PDT) X-Received: by 10.98.159.19 with SMTP id g19mr20882667pfe.21.1498082110542; Wed, 21 Jun 2017 14:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498082110; cv=none; d=google.com; s=arc-20160816; b=KLmgVNvyv6N60D13xJ2brfRxDg+Oy1vnozyR+HsqcBH0UHBySexOpcWIb8xKYhomxU X9JBic8tpxTi3euLsN5V4PChMs1Pewv3XlwtFBtw6q86Cww/r7NpdWQU01aDx22zEjZF o3/MIDyFmd7ktuhook6seOfduyMzgSvkR3C4RDqLNSVFG2Yrj2fpA43JkzK6EZOQuygA rMKlR7PksG/l7qvEgKDFRnNbOpBZdiIiXGxQH+7XUz/pMuqeiqjxTP+CPLRhS8i6S7TA u5AUZQn9gi+B0QS+PcETGJxKJnRQeT7MYbk1D52U1vWMbQ395aZi9adgXGa99W85glkE xIXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=4foRyjq8Ca24H3Hhpo/rDGClXLEh6XcMtPR+4purdFo=; b=z03QEBFYY2gbUVSMruimJf//SU1QWw0vELAP+hZ6dCiaUbE5+PG04RoQyhBDgDgAbQ M5BovcNkmxQ6CbnwUBA3hXJdhLKPAILC3b8TDQL4jbiYsopbN8s/Z1ytpEPXRv5Tbs2L cbVxWhFoIYVayK+0lyiGmtxRn6C1a9V/EwrEG6zfI6Pf8FFdzqlE6tdWFnIEkll9UpHk GHtPaMtXdpUCMGq5IlpKm6kmWv0vZf36rL7rR+8dC6xuXMkskW++UU2QAqVY0S/BpBH3 VHuzarJTau/HeMzUdEWm+rI60PLXSSKz8PqwHEke1zRnqzgFR15BoZ15/dRk6w8dc17R 8CfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si15881358pld.61.2017.06.21.14.55.10; Wed, 21 Jun 2017 14:55:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752455AbdFUVzI (ORCPT + 25 others); Wed, 21 Jun 2017 17:55:08 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:54742 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105AbdFUVzG (ORCPT ); Wed, 21 Jun 2017 17:55:06 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MJl7U-1dOu2D2644-001CC7; Wed, 21 Jun 2017 23:54:05 +0200 From: Arnd Bergmann To: Lorenzo Pieralisi , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Arnd Bergmann , Rob Herring , Brian Norris , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] PCI: versatile: fix typo Date: Wed, 21 Jun 2017 23:53:01 +0200 Message-Id: <20170621215323.3921382-3-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170621215323.3921382-1-arnd@arndb.de> References: <20170621215323.3921382-1-arnd@arndb.de> X-Provags-ID: V03:K0:TRdLhOjFd3aSsQuBzn9JKAhouEs0xGMtTB+BLdMYQOLZ49GpIBj 6W8eRqTm945gBpwvLGMvUoR6jk4CfONV0ui+yWNrKgOIWfoZHm1j3Rs02/MOTJRFKv/xz+6 jVsrv6D1gm/ZEyprrZ3zTiqAvCCaN6K7KsLRqIZQioZKvhritWbHQpscsWICa5Wqf7Ka08z iJv6Q+c9oMEZ35DK0lfXw== X-UI-Out-Filterresults: notjunk:1; V01:K0:GmurvbqZYMM=:LZ+k/OMZMGsoAmFN6fezAv ojvRy29OdZzMAldj55gRECcsCKcGoENJmKIimWcR0acpRFD7S57CiT2Ikxa6fXiXQGdubmrPS K1+8ySuzDt+en9duH5OuoCsNjH+5vZDPTNDdeKz5sjgtCkxxeMmcZq26c/JTZLzMBEAY2y6SX AaZ5IdaScjAumu0QctKh1VfzeKJUckPHu8x6rfXey4CXqDRmr0QYCbMiYcy7Gt7E9xO4O6dgU Jtw1uY/zAUAi7NDYSf/w+xdLtGauapwHvXwnYTCnxxim3F66zEkaeFjWKdN/MmjTsVU+bEccP ghCx7jChluuQypQAlVdsBmwTwuHzQKgY3PEU/SJ8CxSGRvevATB/6z179ccIjGJfFvqfIf6BC h2axwWR7/5CuXzYwqjqPMt5oPli5Ori8ymA/7XLH+8i9I0VMrpfCnRWrOSSVtchCyfWcH9bGg mz3lo03HqzJQ6qkxvTVL5bF90gFic35OeFo/WpaEmWUQqsxBXb2jTU33jBwSNrMlfzmRKYyR5 YzAsdz0p2C16Xf321NCxMqdSysxaAJKOBD6tUUMsU/cbDPACYdJ/C16gA4vwgufSQUhnsR/PJ Z+VdwzhFDKmzywsn/VjMhVBtQu/mVfFH9QQdebWOIyReQaLrn8zQSA1zBsneF57RniGwyEFXC Q9cSCvBTjWD96oO980Iikf3qhGx6Ywd0dxAIg7mTwzMw08ioifVV6sWYPWXEZxLLv85c= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no 'dev' variable in this function: drivers/pci/host/pci-versatile.c: In function 'versatile_pci_probe': drivers/pci/host/pci-versatile.c:131:38: error: 'dev' undeclared (first use in this function); did you mean 'pdev'? This passes the device embedded in the platform_device instead. Fixes: 433d2671da1b ("PCI: versatile: Convert PCI scan API to pci_scan_root_bus_bridge()") Signed-off-by: Arnd Bergmann --- drivers/pci/host/pci-versatile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/pci/host/pci-versatile.c b/drivers/pci/host/pci-versatile.c index 3be25a9dd29a..f572c921cdd4 100644 --- a/drivers/pci/host/pci-versatile.c +++ b/drivers/pci/host/pci-versatile.c @@ -128,7 +128,7 @@ static int versatile_pci_probe(struct platform_device *pdev) struct pci_host_bridge *bridge; LIST_HEAD(pci_res); - bridge = devm_pci_alloc_host_bridge(dev, 0); + bridge = devm_pci_alloc_host_bridge(&pdev->dev, 0); if (!bridge) return -ENOMEM;