Message ID | 1414430414-12586-1-git-send-email-linus.walleij@linaro.org |
---|---|
State | Accepted |
Commit | 1972c97db5b0c125918f662cd084c7d5370674c0 |
Headers | show
Return-Path: <patchwork-forward+bncBDE6RCFOWIARBYX5XGRAKGQET6S32OI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B11562403D for <linaro@patches.linaro.org>; Mon, 27 Oct 2014 17:20:35 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf762442lab.1 for <linaro@patches.linaro.org>; Mon, 27 Oct 2014 10:20:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=9EbCs3lTMPUJ9oJs5lcMDhvXBvgEA5gkWkX07VrUgGA=; b=Hjd6Di7WUdc8PHxnMH7Sfz/jX0i1rKsn8woWzf8o+oZryFv5tOVi4jCYvkwtLNzffB l9eXLlO6Y8src5hOvqzaIx4U7E/vRT5vdASbdDCfvKrfGHqDfg4UsjmVlAY2MGcu/LZy q9aIlL7I8R4SrWBBoENE4gr9f/3bwb2LNyVuvWkNxcopPFsfEVd74daZ1aRcXi3S5FxO o3DBMw4eXdTQCd+WSF3nGdObipm41jCaRSiZmBZcMzdjNc/79/rUiX7XELpmbfi8ibXl oNYWPJaR1ET0ksdLgknSpKrxTRy5A6qSTiERdZ/gnmqbZF85raSNyiIJfhYDZ0HKMzDY rkWQ== X-Gm-Message-State: ALoCoQluO3j4IJkDJqHA0VBuLL3hdCub5wvGc1HcNhas9z2nj2LE4ZGjwImLrGNrYfuVtuSuIke3 X-Received: by 10.152.2.202 with SMTP id 10mr11587law.9.1414430434558; Mon, 27 Oct 2014 10:20:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.38 with SMTP id bd6ls229107lab.24.gmail; Mon, 27 Oct 2014 10:20:34 -0700 (PDT) X-Received: by 10.112.146.5 with SMTP id sy5mr4873292lbb.97.1414430434381; Mon, 27 Oct 2014 10:20:34 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id pi7si21013595lbb.15.2014.10.27.10.20.34 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Oct 2014 10:20:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id hs14so6313031lab.17 for <patchwork-forward@linaro.org>; Mon, 27 Oct 2014 10:20:34 -0700 (PDT) X-Received: by 10.112.12.35 with SMTP id v3mr25184356lbb.80.1414430434272; Mon, 27 Oct 2014 10:20:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp336919lbz; Mon, 27 Oct 2014 10:20:33 -0700 (PDT) X-Received: by 10.70.18.130 with SMTP id w2mr3253410pdd.153.1414430432302; Mon, 27 Oct 2014 10:20:32 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id at7si10995873pac.112.2014.10.27.10.20.31 for <patch@linaro.org>; Mon, 27 Oct 2014 10:20:32 -0700 (PDT) Received-SPF: none (google.com: linux-gpio-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751407AbaJ0RUY (ORCPT <rfc822;patch@linaro.org>); Mon, 27 Oct 2014 13:20:24 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:60429 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751368AbaJ0RUU (ORCPT <rfc822; linux-gpio@vger.kernel.org>); Mon, 27 Oct 2014 13:20:20 -0400 Received: by mail-wg0-f50.google.com with SMTP id z12so3648181wgg.33 for <linux-gpio@vger.kernel.org>; Mon, 27 Oct 2014 10:20:19 -0700 (PDT) X-Received: by 10.194.82.104 with SMTP id h8mr24342268wjy.44.1414430419468; Mon, 27 Oct 2014 10:20:19 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id u8sm12546374wiz.14.2014.10.27.10.20.18 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Oct 2014 10:20:18 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot <acourbot@nvidia.com>, Linus Walleij <linus.walleij@linaro.org>, Jamie Iles <jamie@jamieiles.com>, Alan Tull <atull@altera.com> Subject: [PATCH] gpio: dwapb: fix compile errors Date: Mon, 27 Oct 2014 18:20:14 +0100 Message-Id: <1414430414-12586-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 690ad0b20414..414d0559d32f 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -148,6 +148,8 @@ config GPIO_GENERIC_PLATFORM config GPIO_DWAPB tristate "Synopsys DesignWare APB GPIO driver" + depends on ARM + depends on OF_GPIO select GPIO_GENERIC select GENERIC_IRQ_CHIP help
Whereas the DWAPB driver does not really depend on the ARM architecture, it uses [readl|writel]_relaxed() not found on arch such as Blackfin, so restrict this to ARM until there is another architecture that can make use of it. It is also using the of_node of the gpiochip, so fix this too by requiring OF_GPIO. All error/warnings: make.cross ARCH=blackfin drivers/gpio/gpio-dwapb.c: In function 'dwapb_irq_handler': drivers/gpio/gpio-dwapb.c:91:2: error: implicit declaration of function 'readl_relaxed' [-Werror=implicit-function-declaration] drivers/gpio/gpio-dwapb.c: In function 'dwapb_configure_irqs': drivers/gpio/gpio-dwapb.c:212:32: error: 'struct gpio_chip' has no member named 'of_node' drivers/gpio/gpio-dwapb.c:221:16: error: 'struct gpio_chip' has no member named 'of_node' drivers/gpio/gpio-dwapb.c: In function 'dwapb_gpio_add_port': drivers/gpio/gpio-dwapb.c:331:14: error: 'struct gpio_chip' has no member named 'of_node' cc1: some warnings being treated as errors Cc: Jamie Iles <jamie@jamieiles.com> Cc: Alan Tull <atull@altera.com> Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- drivers/gpio/Kconfig | 2 ++ 1 file changed, 2 insertions(+)