From patchwork Wed Jun 21 21:53:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9803029 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 5D380600C5 for ; Wed, 21 Jun 2017 21:54:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E8C9274D1 for ; Wed, 21 Jun 2017 21:54:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4031828409; Wed, 21 Jun 2017 21:54:25 +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 C4A95274D1 for ; Wed, 21 Jun 2017 21:54:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751798AbdFUVyX (ORCPT ); Wed, 21 Jun 2017 17:54:23 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:59928 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751755AbdFUVyW (ORCPT ); Wed, 21 Jun 2017 17:54:22 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0M9Gk2-1dUuIg0Qz0-00Cliv; Wed, 21 Jun 2017 23:53:44 +0200 From: Arnd Bergmann To: Lorenzo Pieralisi , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Arnd Bergmann , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ARM/PCI: mv78xx0: pass pci_ops correctly again Date: Wed, 21 Jun 2017 23:53:00 +0200 Message-Id: <20170621215323.3921382-2-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:d6ZRcrpF1gdfAQmuZyeec8yMokaRPFRlnlFzszbtDuSBmrcHAAY qYKyslHnYzWnh1UUNB71idRo6Pi5Q14DjJfB8aBzlSxERg+10E9f2Z0uil6qNve+guNe7EK y4g0Uy7yNUM++bxACDuvWKlUyAVqSfpCUyrjMxm1Ws6VsIQuIP4Q8hoZ8qYMAdWhFBcZcjK HDXN+QLMJPFH9FWhVuMJw== X-UI-Out-Filterresults: notjunk:1; V01:K0:dLOiz2Rk0ig=:v+fItNBgBVeCovth/5oOsP 82pIelOretiUktz2c++ifRUp/08ny55an/yeLvgtPxfHx0gkwEZonta7uUAOcxwIsaaCX4/G9 Hol4uq9fakApK2X70mBAYcey8lXNanSqjMUgxRSqJIr/nJOkG9ohtOVQsyLH2BL0WzH3Kgxpf 7yLlK1zMGgOAYOfLitW3xhxA6GP/p3pSy/t7i9SqXIH/MsomjpTbPdVHhk6D0qrS+HFdxA/QN JHcx6OKo4TV1TpGch5eO2XWsWdIZYKQ6cjzXwqimq07Uq6RWFPkUUovehpsGYuTQPMhoHUCEe wFRId8fKjOZQc7uGQ95jUCsnDEt4cduTZoKPDW1lr4vm9IaZ8k/SwIM81sCYtH4ALl44tMLKj PUIpXxTXSYvex1ezc+D42rt7xZXt5YZlCg/QaRmtIlTLHSrEg1W4pfQQJV7PV85ymago6oXAB marH5ZHhtGuGp++Wg0fWqa/q/V3r2hS67QgbToJSIn0Ea+s5yOmlEJiZ+3WxxPsoAJ+uqP3hT duqHxzJV2mDB/9xnZGl7UvHUujA9aHclqslMVV3G7rQ7/53cVqbb1hSVCItHUgL3fvcz+lVmX w12W9JjcscAQrsF1x0vIH3lb4hGfS1AQ7ZXWDbyyZ6Dtp4TyjGUO/XP7ZsRAIQAW1XjVtYqPA Ma1IHZKUxY+4SWxWngAHeWGfBcLTy24kkK/cIflluU+wTNL0aGVCxRdLfdm6CxBxQqHg= 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 We used to pass the operations when calling pci_scan_root_bus, but that argument was removed: arch/arm/mach-mv78xx0/pcie.c:175:23: error: 'pcie_ops' defined but not used [-Werror=unused-variable] Setting it in pci_hw should address this. Fixes: ace27646da8e ("ARM/PCI: Convert PCI scan API to pci_scan_root_bus_bridge()") Signed-off-by: Arnd Bergmann --- arch/arm/mach-mv78xx0/pcie.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-mv78xx0/pcie.c b/arch/arm/mach-mv78xx0/pcie.c index 2b406e909a43..cb7f95c9d8eb 100644 --- a/arch/arm/mach-mv78xx0/pcie.c +++ b/arch/arm/mach-mv78xx0/pcie.c @@ -214,6 +214,7 @@ static int __init mv78xx0_pcie_map_irq(const struct pci_dev *dev, u8 slot, } static struct hw_pci mv78xx0_pci __initdata = { + .ops = &pcie_ops, .nr_controllers = 8, .preinit = mv78xx0_pcie_preinit, .setup = mv78xx0_pcie_setup,