From patchwork Fri Aug 19 12:52:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 74250 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp296664qga; Fri, 19 Aug 2016 05:52:45 -0700 (PDT) X-Received: by 10.66.123.105 with SMTP id lz9mr13746505pab.56.1471611165698; Fri, 19 Aug 2016 05:52:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gc14si8177074pac.142.2016.08.19.05.52.45; Fri, 19 Aug 2016 05:52:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753616AbcHSMwo (ORCPT + 4 others); Fri, 19 Aug 2016 08:52:44 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:35150 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750889AbcHSMwn (ORCPT ); Fri, 19 Aug 2016 08:52:43 -0400 Received: by mail-lf0-f46.google.com with SMTP id f93so32211727lfi.2 for ; Fri, 19 Aug 2016 05:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zLze9gRdFmpzSKjKmE/8WxpHOV7DUs3tsRN8RfF0xEY=; b=Y/XlxNUrPuFCYDCbVliL79JiRFRXfuHH+S5GCsB9Gb8SyfiESJKxouqQafuxuGUjJ1 bXr36dt5Cm0BmFQolr+iAY5x2BjifRb0bpPnwoMo6o6svtjkIxa3+ejpmscjWcSinyU6 j4XaDhLdLS3saqy3CjjIfzGhTcGjSGZGuMCrU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zLze9gRdFmpzSKjKmE/8WxpHOV7DUs3tsRN8RfF0xEY=; b=ip4AEp8daC2i5FgcHCaS8ovcGw+kA2CxWAmq5isOMAh1MfM9tTkdR7Y4N5zQSLeDCE f2lYGabCZWPXhM5CXN0+MZcwQ9WmM8H9jiovW2MEb271MUqWIByt5VnwYXKXUBsRLZWX bPOLe9a0H+87GafIOrFCXkayHm9CCQTOq0gCFXv56GUqeaUHhJtCpNT/vj7KPfJwbtes AYFln0WjK0AyCLEgaFJ3GmogtpO+xfOybllvOZdPfqzx+71NpGGhZmVRrKhURc9Pd7IU EY4SwPJxZf3S0rBQdCm4ISJqnrBR1P83ITk4lNbeyjENpuMDKou6pPgZmekwo89hMuJu jiQg== X-Gm-Message-State: AEkooutSPvArjKkmBltXe4h49tByoCs0Omk3ACPWofXUUqaxqgmxYnLeaXs/G3uZ5h0y1Nxv X-Received: by 10.25.219.10 with SMTP id s10mr1776225lfg.101.1471611162033; Fri, 19 Aug 2016 05:52:42 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id g40sm1202571ljg.22.2016.08.19.05.52.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Aug 2016 05:52:41 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org, Alexandre Courbot Cc: Linus Walleij , stable@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2] gpio: Fix OF build problem on UM Date: Fri, 19 Aug 2016 14:52:36 +0200 Message-Id: <1471611156-4220-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The UserMode (UM) Linux build was failing in gpiolib-of as it requires ioremap()/iounmap() to exist, which is absent from UM. The non-existence of IO memory is negatively defined as CONFIG_NO_IOMEM which means we need to depend on HAS_IOMEM. Cc: stable@vger.kernel.org Cc: Geert Uytterhoeven Reported-by: kbuild test robot Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Depend on HAS_IOMEM rather than !NO_IOMEM --- drivers/gpio/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 98dd47a30fc7..24f833c3d3ba 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -50,6 +50,7 @@ config GPIO_DEVRES config OF_GPIO def_bool y depends on OF + depends on HAS_IOMEM config GPIO_ACPI def_bool y