From patchwork Fri Sep 28 21:36:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11865 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 42D0823E42 for ; Fri, 28 Sep 2012 21:36:35 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id CB83BA18585 for ; Fri, 28 Sep 2012 21:36:34 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so8011818iej.11 for ; Fri, 28 Sep 2012 14:36:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=8C2YUrEnez9CO5UwxIxI4sCe03im7IKhZCCMzCCgOV8=; b=ZTtW6H7Ht21Y2VAtQwrHg9J9MxjnI3PIpuqgX6gZs+ENcRtwa0Uy1CAmr6G3SIRrPH Dtjjn9Fvwz6VJarJ4b1fVnjaqoo6CYHKwrcx1S7fhc7TwGGwRjj/SS0h9Hj2h9EZSflY XoCRZi0DMxjh+7ZZdBZtiNH3m1oQ7IrMhxOwBHna4bZWhT70UqD6HEcxj/fdBijjXnaR NndnpfXeUd4j+AppzumYSHiiVrRPdeGtzpAmFC9j7xdSPxEsKEg6pTD2T9dVEhGhfV3m tI6tbnyILbmIbA0WbeY5OFwoce/z06R3sueq3i9KesswzhsRhzGWRpT4fQTJRlJdt5vV JARQ== Received: by 10.50.184.129 with SMTP id eu1mr72881igc.0.1348868194507; Fri, 28 Sep 2012 14:36:34 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp495009igc; Fri, 28 Sep 2012 14:36:33 -0700 (PDT) Received: by 10.216.72.5 with SMTP id s5mr4144332wed.154.1348868193058; Fri, 28 Sep 2012 14:36:33 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.186]) by mx.google.com with ESMTPS id b16si12301346weq.158.2012.09.28.14.36.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Sep 2012 14:36:33 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.186; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MKcX1-1TGLS52L39-001amK; Fri, 28 Sep 2012 23:36:22 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arm@kernel.org, Arnd Bergmann , Kuninori Morimoto , Linus Walleij Subject: [PATCH 10/12] gpio: pcf857x: select IRQ_DOMAIN Date: Fri, 28 Sep 2012 23:36:15 +0200 Message-Id: <1348868177-21205-11-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1348868177-21205-1-git-send-email-arnd@arndb.de> References: <1348868177-21205-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:0AFnaFh9R4869fcsUTqmDbprJF8gSeixhmWYyYSsQ17 xRU55GeYZzjQl/IJSA5I87wlCO2WFjqKphdSGe8v/rvDo4HuOy 4YBMGCvHCxLu/Nh65fg00h1fk0xBdBTFH0KVsE/Ugc4TxA5Vgk SKJTVKzTt/OSeeffO81X7KdrM6eNzlw9hNfbPgzWc6aN7n7+ZR QcdX2m8n2C1rwnA0T8+ewAQb438lHl8eojYhPY0btEAuAaqVUT MQXEiEFD8pbHR0TVqklF9IjQGycLL6ajLMIVfvtLyd2z7bC7HF YhGe1NdIt1usI2qpOw0wZ03QXquFfNMe9G/UCovHYG0FxqqZEn cvJio5j5oPQBs1i1pg2seWlzwj47p+tbtHqYz+Ae5Kuyu4qV+U GZoY/Ilw7XGYQ== X-Gm-Message-State: ALoCoQlddLIlJoEidFb/vqyQeQRzWTHFo81wDEbo6AtHpoMc+NJzDZIzVWJn3+MaFQRtv0Wc05MU Patch 6e20a0a4 "gpio: pcf857x: enable gpio_to_irq() support" added IRQ domain support to the pcf857x driver, but some configurations (e.g. davinci_all_defconfig) don't already enable CONFIG_IRQ_DOMAIN. Always selecting it from the Kconfig in this case is what other such drivers do as well, and avoids these build errors: Without this patch, building davinci_all_defconfig results in: drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_to_irq': drivers/gpio/gpio-pcf857x.c:167:2: error: implicit declaration of function 'irq_create_mapping' drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_demux_work': drivers/gpio/gpio-pcf857x.c:183:3: error: implicit declaration of function 'irq_find_mapping' drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_domain_cleanup': drivers/gpio/gpio-pcf857x.c:218:3: error: implicit declaration of function 'irq_domain_remove' drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_domain_init': drivers/gpio/gpio-pcf857x.c:230:2: error: implicit declaration of function 'irq_domain_add_linear' Signed-off-by: Arnd Bergmann Cc: Kuninori Morimoto Cc: Linus Walleij --- drivers/gpio/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 0c05532..d055cee 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -336,6 +336,7 @@ config GPIO_PCA953X_IRQ config GPIO_PCF857X tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders" depends on I2C + select IRQ_DOMAIN help Say yes here to provide access to most "quasi-bidirectional" I2C GPIO expanders used for additional digital outputs or inputs.