mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
rtc: remove rtc_class_ops.read_callback
Since commit 416f0e8056 ("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 <[email protected]>
This commit is contained in:
parent
67075b63cc
commit
ad5ea5b9d5
2 changed files with 1 additions and 7 deletions
|
|
@ -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) ?:
|
||||
|
|
|
|||
Loading…
Reference in a new issue