summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sis
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-07-06 18:54:47 +0200
committerArnd Bergmann <arnd@arndb.de>2010-09-16 10:33:07 +0200
commitdc880abef75e7c62c9048171f5112500f36a9244 (patch)
treeeb528c3313ad92d6554f9fa4adc266313ffc10b3 /drivers/gpu/drm/sis
parent49553c2ef88749dd502687f4eb9c258bb10a4f44 (diff)
downloadlinux-dc880abef75e7c62c9048171f5112500f36a9244.tar.gz
linux-dc880abef75e7c62c9048171f5112500f36a9244.tar.bz2
linux-dc880abef75e7c62c9048171f5112500f36a9244.zip
drm: use noop_llseek
The drm device drivers currently allow seeking on the character device but never care about the actual file position. When we change the default llseek operation to be no_llseek, calling llseek on a drm device would return an error condition, which is an API change. Explicitly setting noop_llseek lets us keep the current API. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: David Airlie <airlied@linux.ie> Cc: dri-devel@lists.freedesktop.org
Diffstat (limited to 'drivers/gpu/drm/sis')
-rw-r--r--drivers/gpu/drm/sis/sis_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sis/sis_drv.c b/drivers/gpu/drm/sis/sis_drv.c
index 776bf9e9ea1a..4bb10ef6676a 100644
--- a/drivers/gpu/drm/sis/sis_drv.c
+++ b/drivers/gpu/drm/sis/sis_drv.c
@@ -83,6 +83,7 @@ static struct drm_driver driver = {
.mmap = drm_mmap,
.poll = drm_poll,
.fasync = drm_fasync,
+ .llseek = noop_llseek,
},
.pci_driver = {
.name = DRIVER_NAME,