summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@stericsson.com>2012-01-30 10:47:27 +0100
committerPhilippe Langlais <philippe.langlais@linaro.org>2012-03-19 09:00:30 +0100
commitc2e8837f5703408b91584eec522f1e5a0bebd877 (patch)
tree66a6f8272aefd9ca8c130c1340935add5976ab1f
parent4f927dedfe1a8511c9688c18d0bb5094df8cee5c (diff)
mali: Changes for 3.3
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
-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,