From: Dmitry Torokhov Date: Mon, 8 Oct 2012 16:07:24 +0000 (-0700) Subject: Input: mousedev - mark mousedev interfaces as non-seekable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0124be49770469cfb258d7df4693e70b4c5fb013;p=linux-beck.git Input: mousedev - mark mousedev interfaces as non-seekable Seeking does not make sense for mousedev, so let's use nonseekable_open() to mark its devices as non-seekable. Reviewed-by: David Herrmann Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index 2baf32d72845..88b962aeef13 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c @@ -576,6 +576,7 @@ static int mousedev_open(struct inode *inode, struct file *file) goto err_free_client; file->private_data = client; + nonseekable_open(inode, file); return 0; err_free_client: