diff options
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-dev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c index 362400db2e8b..87d4add6b7f6 100644 --- a/drivers/rtc/rtc-dev.c +++ b/drivers/rtc/rtc-dev.c | |||
@@ -142,7 +142,7 @@ static int set_uie(struct rtc_device *rtc) | |||
142 | static ssize_t | 142 | static ssize_t |
143 | rtc_dev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | 143 | rtc_dev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) |
144 | { | 144 | { |
145 | struct rtc_device *rtc = to_rtc_device(file->private_data); | 145 | struct rtc_device *rtc = file->private_data; |
146 | 146 | ||
147 | DECLARE_WAITQUEUE(wait, current); | 147 | DECLARE_WAITQUEUE(wait, current); |
148 | unsigned long data; | 148 | unsigned long data; |
@@ -196,7 +196,7 @@ rtc_dev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | |||
196 | 196 | ||
197 | static unsigned int rtc_dev_poll(struct file *file, poll_table *wait) | 197 | static unsigned int rtc_dev_poll(struct file *file, poll_table *wait) |
198 | { | 198 | { |
199 | struct rtc_device *rtc = to_rtc_device(file->private_data); | 199 | struct rtc_device *rtc = file->private_data; |
200 | unsigned long data; | 200 | unsigned long data; |
201 | 201 | ||
202 | poll_wait(file, &rtc->irq_queue, wait); | 202 | poll_wait(file, &rtc->irq_queue, wait); |
@@ -396,7 +396,7 @@ static int rtc_dev_ioctl(struct inode *inode, struct file *file, | |||
396 | 396 | ||
397 | static int rtc_dev_release(struct inode *inode, struct file *file) | 397 | static int rtc_dev_release(struct inode *inode, struct file *file) |
398 | { | 398 | { |
399 | struct rtc_device *rtc = to_rtc_device(file->private_data); | 399 | struct rtc_device *rtc = file->private_data; |
400 | 400 | ||
401 | #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL | 401 | #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL |
402 | clear_uie(rtc); | 402 | clear_uie(rtc); |
@@ -410,7 +410,7 @@ static int rtc_dev_release(struct inode *inode, struct file *file) | |||
410 | 410 | ||
411 | static int rtc_dev_fasync(int fd, struct file *file, int on) | 411 | static int rtc_dev_fasync(int fd, struct file *file, int on) |
412 | { | 412 | { |
413 | struct rtc_device *rtc = to_rtc_device(file->private_data); | 413 | struct rtc_device *rtc = file->private_data; |
414 | return fasync_helper(fd, file, on, &rtc->async_queue); | 414 | return fasync_helper(fd, file, on, &rtc->async_queue); |
415 | } | 415 | } |
416 | 416 | ||