aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/dev.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-02-25 21:20:45 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-02-25 21:20:45 +0100
commitad5ea5b9d513107869acd460f0180d8fb94856b9 (patch)
treeff8153619c29abcaafbf9abba071f781feb7bea1 /drivers/rtc/dev.c
parent67075b63cce26c9a235986f163ce890e7bb035a7 (diff)
downloadlinux-ad5ea5b9d513107869acd460f0180d8fb94856b9.tar.gz
rtc: remove rtc_class_ops.read_callback
Since commit 416f0e8056f7 ("RTC: sa1100: Update the sa1100 RTC driver."), the last user of .read_callback is gone. It has been 8 years and now new user appeared. Simply remove it. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
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 43d962a9c2105..1d006ef4bb575 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)
remove_wait_queue(&rtc->irq_queue, &wait);
if (ret == 0) {
- /* Check for any data updates */
- if (rtc->ops->read_callback)
- data = rtc->ops->read_callback(rtc->dev.parent,
- data);
-
if (sizeof(int) != sizeof(long) &&
count == sizeof(unsigned int))
ret = put_user(data, (unsigned int __user *)buf) ?: