aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/dev.c')
-rw-r--r--drivers/rtc/dev.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/rtc/dev.c b/drivers/rtc/dev.c
index 43d962a9c210..1d006ef4bb57 100644
--- a/drivers/rtc/dev.c
+++ b/drivers/rtc/dev.c
@@ -178,11 +178,6 @@ rtc_dev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
178 remove_wait_queue(&rtc->irq_queue, &wait); 178 remove_wait_queue(&rtc->irq_queue, &wait);
179 179
180 if (ret == 0) { 180 if (ret == 0) {
181 /* Check for any data updates */
182 if (rtc->ops->read_callback)
183 data = rtc->ops->read_callback(rtc->dev.parent,
184 data);
185
186 if (sizeof(int) != sizeof(long) && 181 if (sizeof(int) != sizeof(long) &&
187 count == sizeof(unsigned int)) 182 count == sizeof(unsigned int))
188 ret = put_user(data, (unsigned int __user *)buf) ?: 183 ret = put_user(data, (unsigned int __user *)buf) ?: