Commit 70c00ba0 authored by Marcelo Tosatti's avatar Marcelo Tosatti Committed by Linus Torvalds

[PATCH] small hp_sdc_rtc cleanup: use no_llseek

Use no_llseek function.
Signed-off-by: default avatarMarcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: "Brian S. Julin" <bri@calyx.com>
Acked-by: default avatarVojtech Pavlik <vojtech@suse.cz>
Cc: Dmitry Torokhov <dtor_core@ameritech.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5998bf1d
...@@ -60,8 +60,6 @@ static struct fasync_struct *hp_sdc_rtc_async_queue; ...@@ -60,8 +60,6 @@ static struct fasync_struct *hp_sdc_rtc_async_queue;
static DECLARE_WAIT_QUEUE_HEAD(hp_sdc_rtc_wait); static DECLARE_WAIT_QUEUE_HEAD(hp_sdc_rtc_wait);
static loff_t hp_sdc_rtc_llseek(struct file *file, loff_t offset, int origin);
static ssize_t hp_sdc_rtc_read(struct file *file, char *buf, static ssize_t hp_sdc_rtc_read(struct file *file, char *buf,
size_t count, loff_t *ppos); size_t count, loff_t *ppos);
...@@ -387,11 +385,6 @@ static int hp_sdc_rtc_set_i8042timer (struct timeval *setto, uint8_t setcmd) ...@@ -387,11 +385,6 @@ static int hp_sdc_rtc_set_i8042timer (struct timeval *setto, uint8_t setcmd)
return 0; return 0;
} }
static loff_t hp_sdc_rtc_llseek(struct file *file, loff_t offset, int origin)
{
return -ESPIPE;
}
static ssize_t hp_sdc_rtc_read(struct file *file, char *buf, static ssize_t hp_sdc_rtc_read(struct file *file, char *buf,
size_t count, loff_t *ppos) { size_t count, loff_t *ppos) {
ssize_t retval; ssize_t retval;
...@@ -679,7 +672,7 @@ static int hp_sdc_rtc_ioctl(struct inode *inode, struct file *file, ...@@ -679,7 +672,7 @@ static int hp_sdc_rtc_ioctl(struct inode *inode, struct file *file,
static struct file_operations hp_sdc_rtc_fops = { static struct file_operations hp_sdc_rtc_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = hp_sdc_rtc_llseek, .llseek = no_llseek,
.read = hp_sdc_rtc_read, .read = hp_sdc_rtc_read,
.poll = hp_sdc_rtc_poll, .poll = hp_sdc_rtc_poll,
.ioctl = hp_sdc_rtc_ioctl, .ioctl = hp_sdc_rtc_ioctl,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment