summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-03-02 16:53:53 +0530
committerTushar Behera <tushar.behera@linaro.org>2012-12-13 14:53:56 +0530
commit43e450e433c0d8539f63bcaecb654f7432f35793 (patch)
tree6ffc1d3f5c0ae3a2f8ebc43b2f52eb4d6f816ff7
parent2702a6b394d813fbf7b1829cac5f5ed606aaad4c (diff)
downloadlinux-topics-43e450e433c0d8539f63bcaecb654f7432f35793.tar.gz
drm/mali: Fix compile time error related to fops listing
Fixed following error. drivers/gpu/drm/mali/mali_drv.c:80:4: error: field name not in record or union initializer drivers/gpu/drm/mali/mali_drv.c:80:4: error: (near initialization for ‘driver.fops’) Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--drivers/gpu/drm/mali/mali_drv.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/gpu/drm/mali/mali_drv.c b/drivers/gpu/drm/mali/mali_drv.c
index e914c1cd4c7..5eac7aa4170 100644
--- a/drivers/gpu/drm/mali/mali_drv.c
+++ b/drivers/gpu/drm/mali/mali_drv.c
@@ -57,6 +57,16 @@ static int mali_drm_unload(struct drm_device *dev)
return 0;
}
+static const struct file_operations drm_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 =
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39)
@@ -76,15 +86,7 @@ static struct drm_driver driver =
.get_reg_ofs = drm_core_get_reg_ofs,
#endif
.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 = &drm_fops,
.name = DRIVER_NAME,
.desc = DRIVER_DESC,
.date = DRIVER_DATE,