From patchwork Fri Mar 28 21:20:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 3907561 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 025BEBF540 for ; Fri, 28 Mar 2014 21:22:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C1592034F for ; Fri, 28 Mar 2014 21:22:44 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4055E2034C for ; Fri, 28 Mar 2014 21:22:43 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WTeDk-000267-Cb; Fri, 28 Mar 2014 21:21:49 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WTeDT-0004nk-5e; Fri, 28 Mar 2014 21:21:31 +0000 Received: from mail-oa0-x230.google.com ([2607:f8b0:4003:c02::230]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WTeD0-0004ji-3u for linux-arm-kernel@lists.infradead.org; Fri, 28 Mar 2014 21:21:02 +0000 Received: by mail-oa0-f48.google.com with SMTP id m1so6709417oag.21 for ; Fri, 28 Mar 2014 14:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Kbp0COTe6U8UPpL6pPoydNO3x5qiYs4OQLeQ3zzvjo0=; b=MEVr7KSux0pWFHlBO/EdQU4nWipkoExAJy0+SgHIZusaewyqEoYIjJGuZU4b2wB4bx 6QdBriZtkI0FaPAGCzBuFnd3kgE6x4aR57DnxwpDwxuiBLBtrxMcZguBHEeQVEeSIrfm 8C74jxLYV1D8Ru6J1+zj0oUVKIJZP2wa50Xzvkctz3uzi9Rp4JoZvf4cSmpI4vWkmiIy JwaQ31rm0T8GuX1ye3tfX5/QSiv7RJIV+SYcrZLLiCzaKXcdciC/8r5xtA2qhD7LAzNs 9zyg2tLrpFysv2EcKUcpNprs5w7NI0/FauxVQzrjS1ncFp+mcdyARhGoAduXGXifJ8RJ NjfA== X-Received: by 10.182.2.42 with SMTP id 10mr2094708obr.73.1396041639178; Fri, 28 Mar 2014 14:20:39 -0700 (PDT) Received: from localhost.localdomain (72-48-77-163.dyn.grandenetworks.net. [72.48.77.163]) by mx.google.com with ESMTPSA id g3sm8138649obk.12.2014.03.28.14.20.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 14:20:38 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] misc: arm-charlcd: add DT probe support Date: Fri, 28 Mar 2014 16:20:29 -0500 Message-Id: <1396041629-28820-2-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1396041629-28820-1-git-send-email-robherring2@gmail.com> References: <1396041629-28820-1-git-send-email-robherring2@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140328_172102_250862_4B030675 X-CRM114-Status: GOOD ( 12.14 ) X-Spam-Score: -1.8 (-) Cc: Greg Kroah-Hartman , Arnd Bergmann , Rob Herring X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rob Herring Add the DT match table to enable DT based probe matching. Signed-off-by: Rob Herring Cc: Arnd Bergmann Cc: Greg Kroah-Hartman --- drivers/misc/arm-charlcd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/misc/arm-charlcd.c b/drivers/misc/arm-charlcd.c index b7ebf80..c72e96b 100644 --- a/drivers/misc/arm-charlcd.c +++ b/drivers/misc/arm-charlcd.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -366,11 +367,17 @@ static const struct dev_pm_ops charlcd_pm_ops = { .resume = charlcd_resume, }; +static const struct of_device_id charlcd_match[] = { + { .compatible = "arm,versatile-lcd", }, + {} +}; + static struct platform_driver charlcd_driver = { .driver = { .name = DRIVERNAME, .owner = THIS_MODULE, .pm = &charlcd_pm_ops, + .of_match_table = of_match_ptr(charlcd_match), }, .remove = __exit_p(charlcd_remove), };