Return-Path: Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com. [67.231.152.168]) by gmr-mx.google.com with ESMTP id b62si40429wmc.0.2015.11.26.01.59.19 for ; Thu, 26 Nov 2015 01:59:19 -0800 (PST) From: Piotr Stankiewicz To: , CC: , , Piotr Stankiewicz Subject: [rtc-linux] [PATCH] rtc: rx8581: adding Device Tree support Date: Thu, 26 Nov 2015 09:58:37 +0000 Message-ID: <1448531917-14994-1-git-send-email-piotrs@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Piotr Stankiewicz --- drivers/rtc/rtc-rx8581.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/rtc/rtc-rx8581.c b/drivers/rtc/rtc-rx8581.c index 161e25d0..a4c86c5 100644 --- a/drivers/rtc/rtc-rx8581.c +++ b/drivers/rtc/rtc-rx8581.c @@ -312,9 +312,18 @@ static const struct i2c_device_id rx8581_id[] = { }; MODULE_DEVICE_TABLE(i2c, rx8581_id); +#ifdef CONFIG_OF +static const struct of_device_id rx8581_of_match[] = { + { .compatible = "epson,rx8581"}, + {} +}; +MODULE_DEVICE_TABLE(of, rx8581_of_match); +#endif + static struct i2c_driver rx8581_driver = { .driver = { .name = "rtc-rx8581", + .of_match_table = of_match_ptr(rx8581_of_match), }, .probe = rx8581_probe, .id_table = rx8581_id, -- 1.7.10.4 -- -- 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@googlegroups.com. For more options, visit https://groups.google.com/d/optout.