Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030902AbcCQN4r (ORCPT ); Thu, 17 Mar 2016 09:56:47 -0400 Received: from down.free-electrons.com ([37.187.137.238]:48606 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030772AbcCQN4p (ORCPT ); Thu, 17 Mar 2016 09:56:45 -0400 Date: Thu, 17 Mar 2016 14:56:32 +0100 From: Alexandre Belloni To: Harvey Hunt Cc: Paul Cercueil , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Ralf Baechle , Alessandro Zummo , Paul Burton , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, rtc-linux@googlegroups.com Subject: Re: [PATCH 3/5] rtc: rtc-jz4740: Add support for devicetree Message-ID: <20160317135632.GG3362@piout.net> References: <1457217531-26064-1-git-send-email-paul@crapouillou.net> <1457217531-26064-3-git-send-email-paul@crapouillou.net> <20160317120804.GD3362@piout.net> <56EAB210.70900@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56EAB210.70900@imgtec.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1578 Lines: 44 On 17/03/2016 at 13:33:04 +0000, Harvey Hunt wrote : > On 17/03/16 12:08, Alexandre Belloni wrote: > >On 05/03/2016 at 23:38:49 +0100, Paul Cercueil wrote : > >>Signed-off-by: Paul Cercueil > >>--- > >> drivers/rtc/rtc-jz4740.c | 16 +++++++++++++++- > >> 1 file changed, 15 insertions(+), 1 deletion(-) > >> > >>diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c > >>index 47617bd..3914b1c 100644 > >>--- a/drivers/rtc/rtc-jz4740.c > >>+++ b/drivers/rtc/rtc-jz4740.c > >>@@ -17,6 +17,7 @@ > >> #include > >> #include > >> #include > >>+#include > >> #include > >> #include > >> #include > >>@@ -245,6 +246,13 @@ void jz4740_rtc_poweroff(struct device *dev) > >> } > >> EXPORT_SYMBOL_GPL(jz4740_rtc_poweroff); > >> > >>+static const struct of_device_id jz4740_rtc_of_match[] = { > >>+ { .compatible = "ingenic,jz4740-rtc", .data = (void *) ID_JZ4740 }, > >>+ { .compatible = "ingenic,jz4780-rtc", .data = (void *) ID_JZ4780 }, > > > >ingenic is not in Documentation/devicetree/bindings/vendor-prefixes.txt, > >you have to add it there before using it. > > Ingenic is in vendor-prefixes.txt - it was added by Commit f289cc7 > ("devicetree/bindings: add Ingenic Semiconductor vendor prefix"). > Indeed, I was looking at an old v4.1 based branch instead of master. You can forget that comment :) -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com