summaryrefslogtreecommitdiff
path: root/drivers/gpu/mali/mali400ko
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@stericsson.com>2012-01-30 10:47:27 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:04:31 +0200
commit6020a86def5b4ce377a843315bcf66c9ce9ca37c (patch)
treec273e59a7d040cb46b0bde9c080c37a8c9c691b3 /drivers/gpu/mali/mali400ko
parente9b1ede595b1fb80bc1218c964610469df5e11be (diff)
mali: Changes for 3.3
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
Diffstat (limited to 'drivers/gpu/mali/mali400ko')
-rw-r--r--drivers/gpu/mali/mali400ko/x11/mali_drm/mali/mali_drv.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/drivers/gpu/mali/mali400ko/x11/mali_drm/mali/mali_drv.c b/drivers/gpu/mali/mali400ko/x11/mali_drm/mali/mali_drv.c
index 583fb55c50a..571ab04e1e2 100644
--- a/drivers/gpu/mali/mali400ko/x11/mali_drm/mali/mali_drv.c
+++ b/drivers/gpu/mali/mali400ko/x11/mali_drm/mali/mali_drv.c
@@ -47,6 +47,17 @@ static int mali_drm_unload(struct drm_device *dev)
return 0;
}
+static const struct file_operations mali_driver_fops =
+{
+ .owner = THIS_MODULE,
+ .open = drm_open,
+ .release = drm_release,
+ .unlocked_ioctl = drm_ioctl,
+ .mmap = drm_mmap,
+ .poll = drm_poll,
+ .fasync = drm_fasync,
+};
+
static struct drm_driver driver =
{
.load = mali_drm_load,
@@ -59,15 +70,7 @@ static struct drm_driver driver =
.suspend = mali_drm_suspend,
.resume = mali_drm_resume,
.ioctls = NULL,
- .fops = {
- .owner = THIS_MODULE,
- .open = drm_open,
- .release = drm_release,
- .unlocked_ioctl = drm_ioctl,
- .mmap = drm_mmap,
- .poll = drm_poll,
- .fasync = drm_fasync,
- },
+ .fops = &mali_driver_fops,
.name = DRIVER_NAME,
.desc = DRIVER_DESC,
.date = DRIVER_DATE,