From patchwork Wed Oct 17 18:50:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 149078 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1022618lji; Wed, 17 Oct 2018 11:51:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Lwur1hJkS8JgGISQaiZ3+TrArW2fgDEsO0M+yRzpXPSDlwAAkpebzgh8FVxKHP5f2D+Q9 X-Received: by 2002:a17:902:bf09:: with SMTP id bi9-v6mr26745825plb.118.1539802316917; Wed, 17 Oct 2018 11:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539802316; cv=none; d=google.com; s=arc-20160816; b=ZKFQqLk/E4hh1TrjQcKt/VfPSRlc7Ot0TM+QlIFX8CoI1E1XfKgoghYZTh+gWP3iFM MfU4JZ1GHmXQojx21RtmG3LLH4xRd+9Aks8gCfil6AYo/23/dapIf+WxKEFpjo0C4UfM qcFpK0YxWDncskqnZ4Zh37gpSnr2DK/XfsbuhVSMZEXmWkEpObbjot413rOgAj3f7DSK /21dAaXSuRkJcKLoFAJ2Irbvm96yKsXGA7mdAX0MBuJQXuxwCzRw8WjOjbABE/OA0BvJ S570thoYJIlNE//m0g4aYVWmbQ+5Xn86zWnJQp5ZOpLb6oy7DPnqQzEr9wFtFPLNzruh b0YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=8hWTmHGKsn2erHahc3RiqRG4uSJBuYnx1TwvP9FJXzE=; b=dPGqnPctEcpHzlV+B5pRujXliPSW9YC0uVZlU53x/DrnwCzGbABYlbgdnU/N4u3OOA aKmBGWxeEZ450KPs+Mo3MhTABZxhbTuB18YSaXHQB/lFFin0CPaHzRiskVioCltCkqFT AbwxmlBEnPsPVzovUE3vwh2vO+6kIZDl9zG2VxA8wArfuyzukvIAqAy8bIMc0WQQnIix unzWa176jINGe4AVAQ8iVSeQGhU6a4lTaEa1purTPVaVqwJy0cT2D9/BhTPVufvgpQVC qKv0eWPzHT7a90QMD1N++WrzPd7ujJEdqPoytH/JM1KHBbKQ8OuOWwtc1D+hezcq5iu1 vKZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-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 66-v6si19683623pla.180.2018.10.17.11.51.56; Wed, 17 Oct 2018 11:51:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727695AbeJRCs4 (ORCPT + 1 other); Wed, 17 Oct 2018 22:48:56 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:46541 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727435AbeJRCs4 (ORCPT ); Wed, 17 Oct 2018 22:48:56 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1Mlvr3-1flWq10umZ-00j1sz; Wed, 17 Oct 2018 20:51:30 +0200 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1Mlvr3-1flWq10umZ-00j1sz; Wed, 17 Oct 2018 20:51:30 +0200 From: Arnd Bergmann To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Mark Brown Cc: Arnd Bergmann , Jarkko Nikula , Lubomir Rintel , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: pxa2xx: fix PCI dependency Date: Wed, 17 Oct 2018 20:50:52 +0200 Message-Id: <20181017185128.2634666-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:Lk9D7S/uTiR88GE592s9OY8762St2G7Rp0iKSykQfhkboZLOjkx RogAee+KtRqeCppjwHsxkKJdl/XYuwDJdbjcE5FgTj5huPGiK3gqElDpIAwKl8Nn6EnyPL/ YSl/kDo8KOgfiGBFF8mVk/RxHUv120NhK2Ofxd3O4kMa7N+nFMdsuRCE5Fi45WLY1ylDGTb KRGBE0ARB/MDS6kL63UyQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V01:K0:lc5GyvfVigE=:7RAA9k9uRilBjNaX3ej9wF wLpxsgCo0rc653x5KZh5VVDD4lpCNch1DQ/Sx9sBEZnBsSOjFN+YVhwxqGyG2D/9HeaMzSYzn vc99ZGVNnCBrURfxY+UQlherpLoc7EwsV8w2qzBL38BhMujhUCsalOLBGeTUOSEyT147jRu/4 fiLXLWzX4u2wReY+qCk+SE/dyj/pIT7DA9cUx4RSaXQ3D46nAqSUrBX9j6ylXeHsq29wtHvl2 Rt61RXYwhz/ZQ4l9dmKb+vtVH+ovylLkj46GdmLXeF/psY4MNxWTSHYS9CYXNVtnu2/Hcg+4j 7bPc2ZWyJoElB3ySyA65WLBCs4t1zPerj8J7HhsWidb5GUqE3MzpZ7l5hi/Ma3q9aWm6ovnjz IgWHljzqR4+M0wd6v/zmzWf86Pr9+89VEMHxqSmAiAbuKlNYTn9Q1c8oLeJxVNFdwqYGcFGxG A/gh09Xp8ChcST6m8PuLabM9CgtooNzlGBlUZ+j6I1euFtqOSAHiIBLh9Opsn+UKDfF6AQIx1 Pt7+pGzQtD7MRnT7/MFEC6tJO6jjS1iS7aPPH179r1ZmkGQOgdC35Hgg5zK5CbVviTP9ixn+k YBhbdxHSZgQpaXWMk4yL/YihAyqlX84ciQFiWtxmvKj/x8nUTxEgZ5I/JoXkjxE8pX9AV2sZf IergDRL3fLhajeJoSoVWwqa9SrsuzUbE80KDEojgvtTa3dSYvwrQ/Tzs5MZtC5VBEDgk= Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org The code reorganization broke building without CONFIG_PCI: drivers/spi/spi-pxa2xx.c: In function 'pxa2xx_spi_init_pdata': drivers/spi/spi-pxa2xx.c:1457:15: error: implicit declaration of function 'pci_match_id'; did you mean 'pci_map_sg'? [-Werror=implicit-function-declaration] Add back an #ifdef around the code block that requires it. Fixes: 87ae1d2d7077 ("spi: pxa2xx: Add devicetree support") Signed-off-by: Arnd Bergmann --- drivers/spi/spi-pxa2xx.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.18.0 diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 612cc49db28f..c1c30109dd1f 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1453,9 +1453,11 @@ pxa2xx_spi_init_pdata(struct platform_device *pdev) if (pdev->dev.of_node) of_id = of_match_device(pdev->dev.driver->of_match_table, &pdev->dev); +#ifdef CONFIG_PCI else if (dev_is_pci(pdev->dev.parent)) pcidev_id = pci_match_id(pxa2xx_spi_pci_compound_match, to_pci_dev(pdev->dev.parent)); +#endif else if (adev) adev_id = acpi_match_device(pdev->dev.driver->acpi_match_table, &pdev->dev);