diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/raw.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c index c596a08c07b3..173fb08555d5 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c | |||
@@ -249,23 +249,11 @@ static ssize_t raw_file_write(struct file *file, const char __user *buf, | |||
249 | return generic_file_write_nolock(file, &local_iov, 1, ppos); | 249 | return generic_file_write_nolock(file, &local_iov, 1, ppos); |
250 | } | 250 | } |
251 | 251 | ||
252 | static ssize_t raw_file_aio_write(struct kiocb *iocb, const char __user *buf, | ||
253 | size_t count, loff_t pos) | ||
254 | { | ||
255 | struct iovec local_iov = { | ||
256 | .iov_base = (char __user *)buf, | ||
257 | .iov_len = count | ||
258 | }; | ||
259 | |||
260 | return generic_file_aio_write_nolock(iocb, &local_iov, 1, &iocb->ki_pos); | ||
261 | } | ||
262 | |||
263 | |||
264 | static const struct file_operations raw_fops = { | 252 | static const struct file_operations raw_fops = { |
265 | .read = generic_file_read, | 253 | .read = generic_file_read, |
266 | .aio_read = generic_file_aio_read, | 254 | .aio_read = generic_file_aio_read, |
267 | .write = raw_file_write, | 255 | .write = raw_file_write, |
268 | .aio_write = raw_file_aio_write, | 256 | .aio_write = generic_file_aio_write_nolock, |
269 | .open = raw_open, | 257 | .open = raw_open, |
270 | .release= raw_release, | 258 | .release= raw_release, |
271 | .ioctl = raw_ioctl, | 259 | .ioctl = raw_ioctl, |