From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Belloni Subject: Re: [PATCH v2 3/4] rtc: rv8803: add device tree compatible names Date: Fri, 24 Jun 2016 09:00:21 +0200 Message-ID: <20160624070021.GH5809@piout.net> References: <1466577742-18824-1-git-send-email-dirk.behme@de.bosch.com> <1466577742-18824-4-git-send-email-dirk.behme@de.bosch.com> Reply-To: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Sender: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <1466577742-18824-4-git-send-email-dirk.behme-V5te9oGctAVWk0Htik3J/w@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Dirk Behme Cc: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Knut Wohlrab , Oleksij Rempel List-Id: devicetree@vger.kernel.org On 22/06/2016 at 08:42:21 +0200, Dirk Behme wrote : > From: Knut Wohlrab > > Add device tree compatible names for usage in a compatible > list of alternative RTC devices. > This patch is unnecessary, the i2c subsystem is making sure the driver is probed without it. > Signed-off-by: Knut Wohlrab > Signed-off-by: Oleksij Rempel > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > --- > drivers/rtc/rtc-rv8803.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c > index f623038..e122b51 100644 > --- a/drivers/rtc/rtc-rv8803.c > +++ b/drivers/rtc/rtc-rv8803.c > @@ -18,6 +18,7 @@ > #include > #include > #include > +#include > > #define RV8803_SEC 0x00 > #define RV8803_MIN 0x01 > @@ -520,9 +521,19 @@ static const struct i2c_device_id rv8803_id[] = { > }; > MODULE_DEVICE_TABLE(i2c, rv8803_id); > > +#ifdef CONFIG_OF > +static const struct of_device_id rv8803_of_match[] = { > + { .compatible = "microcrystal,rv8803", }, > + { .compatible = "epson,rx8900", }, > + {}, > +}; > +MODULE_DEVICE_TABLE(of, rv8803_of_match); > +#endif > + > static struct i2c_driver rv8803_driver = { > .driver = { > .name = "rtc-rv8803", > + .of_match_table = of_match_ptr(rv8803_of_match), > }, > .probe = rv8803_probe, > .remove = rv8803_remove, > -- > 1.9.1 > > -- > You received this message because you are subscribed to "rtc-linux". > Membership options at http://groups.google.com/group/rtc-linux . > Please read http://groups.google.com/group/rtc-linux/web/checklist > before submitting a driver. > --- > You received this message because you are subscribed to the Google Groups "rtc-linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/d/optout. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout.