lkml.org 
[lkml]   [2016]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] rtc: rv3029: set uie_unsupported
Date
The rv3029 driver doesn't handle interrupts. Set uie_unsupported so we
never wait for an interrupt to come and properly use emulation when
available.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
drivers/rtc/rtc-rv3029c2.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/rtc/rtc-rv3029c2.c b/drivers/rtc/rtc-rv3029c2.c
index d0cbf08040cd..586269f69b02 100644
--- a/drivers/rtc/rtc-rv3029c2.c
+++ b/drivers/rtc/rtc-rv3029c2.c
@@ -795,6 +795,8 @@ static int rv3029_probe(struct i2c_client *client,
if (IS_ERR(rtc))
return PTR_ERR(rtc);

+ rtc->uie_unsupported = 1;
+
i2c_set_clientdata(client, rtc);

return 0;
--
2.7.0
\
 
 \ /
  Last update: 2016-03-18 00:21    [W:0.301 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site