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: 9803041 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 45627600C5 for ; Wed, 21 Jun 2017 21:55:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36486274D1 for ; Wed, 21 Jun 2017 21:55:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 291DC2845D; Wed, 21 Jun 2017 21:55:09 +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=-6.9 required=2.0 tests=BAYES_00,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 ADD13274D1 for ; Wed, 21 Jun 2017 21:55:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752139AbdFUVzH (ORCPT ); Wed, 21 Jun 2017 17:55:07 -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-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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;