From patchwork Fri Mar 1 12:07:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 15194 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 A0AF423E24 for ; Fri, 1 Mar 2013 12:07:47 +0000 (UTC) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by fiordland.canonical.com (Postfix) with ESMTP id 5052FA1916F for ; Fri, 1 Mar 2013 12:07:47 +0000 (UTC) Received: by mail-ve0-f177.google.com with SMTP id m1so2772837ves.8 for ; Fri, 01 Mar 2013 04:07:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :mime-version:content-type:x-gm-message-state; bh=c0/lOEgdmHkGwyRCzVfwSY3qBupMunm442gXrvHyaD0=; b=JDeUi5EzQhz0EbYtD9sSO6ODmbgz4bUX80gDgu/DudXLKRnb87c+C0AZ/U4Jcc4mwv LZaJFZw3E29rT6xeYwKRngqAcmSvr1Zo0oU4HMBu4RV0lL6HJXhe/irdJEyxxwASMxO3 ZuwhwOMfpjd9IeQCKWKBTlmRhT34p4rxdTzkMVaUBEnsAvQQk30B3iLkOnvr82d3m2EL Me5lxmVjd/uFRbf83wZ7FR0FFs9tAMWupk0faLaJUzFGO8pITiSYJ9y4sr/jh79h+9BG EeqgY/Ygah3RBQyMQJCN6D7y+uBHE2y/klqOnyjw5RHFlUQAY7SKzBaxzFKx2d8rjGw4 Mvig== X-Received: by 10.58.188.48 with SMTP id fx16mr4037916vec.22.1362139666799; Fri, 01 Mar 2013 04:07:46 -0800 (PST) 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.58.145.101 with SMTP id st5csp28491veb; Fri, 1 Mar 2013 04:07:46 -0800 (PST) X-Received: by 10.14.207.73 with SMTP id m49mr27513624eeo.24.1362139665689; Fri, 01 Mar 2013 04:07:45 -0800 (PST) Received: from eu1sys200aog104.obsmtp.com (eu1sys200aog104.obsmtp.com [207.126.144.117]) by mx.google.com with SMTP id w44si17914285eeg.160.2013.03.01.04.07.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 01 Mar 2013 04:07:45 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.117 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.117; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.117 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob104.postini.com ([207.126.147.11]) with SMTP ID DSNKUTCaByQDpay7mdtQlzbI0RHBLJjb/0So@postini.com; Fri, 01 Mar 2013 12:07:45 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 487CE5C; Fri, 1 Mar 2013 12:06:32 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 1081A58; Fri, 1 Mar 2013 05:56:07 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id BFFBD24C07C; Fri, 1 Mar 2013 13:07:14 +0100 (CET) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Fri, 1 Mar 2013 13:07:20 +0100 From: Linus Walleij To: Samuel Ortiz , Cc: Anmar Oueja , Gabriel Fernandez , , Linus Walleij Subject: [PATCH 1/2] mfd: stmpe: DT: Enable no-irq mode configuration Date: Fri, 1 Mar 2013 13:07:16 +0100 Message-ID: <1362139636-23579-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmU7SlGBJA/UlrV4dLVN6Lsmyh0DZvgoFw8Fy4f04tWyfLTaJQ7vQosIowFMGRhHVEwSFbR From: Gabriel Fernandez If there is no interrupt property into stmpe node then activate the no-irq mode by setting the irq value to -1. Cc: devicetree-discuss@lists.ozlabs.org Signed-off-by: Gabriel Fernandez Signed-off-by: Linus Walleij --- drivers/mfd/stmpe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c index 4b11202..e550dcb 100644 --- a/drivers/mfd/stmpe.c +++ b/drivers/mfd/stmpe.c @@ -1057,6 +1057,9 @@ int stmpe_probe(struct stmpe_client_info *ci, int partnum) return -ENOMEM; stmpe_of_probe(pdata, np); + + if (of_find_property(np, "interrupts", NULL) == NULL) + ci->irq = -1; } stmpe = devm_kzalloc(ci->dev, sizeof(struct stmpe), GFP_KERNEL);