diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-02-25 21:20:45 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-02-25 21:20:45 +0100 |
commit | ad5ea5b9d513107869acd460f0180d8fb94856b9 (patch) | |
tree | ff8153619c29abcaafbf9abba071f781feb7bea1 /drivers/rtc/dev.c | |
parent | rtc: add AB-RTCMC-32.768kHz-EOZ9 RTC support (diff) | |
download | linux-ad5ea5b9d513107869acd460f0180d8fb94856b9.tar.xz linux-ad5ea5b9d513107869acd460f0180d8fb94856b9.zip |
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.c | 5 |
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) 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) ?: |