diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2012-03-02 16:53:53 +0530 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2012-06-11 14:54:18 +0530 |
commit | f7f21c7271abf0ff6c28eb38b4a64fbd7622990b (patch) | |
tree | c8ed10e64bdad6db9aa817491d139b764dd3a5d7 | |
parent | 535b2aa935ead33effdfea0931add73fca98036f (diff) | |
download | linux-topics-f7f21c7271abf0ff6c28eb38b4a64fbd7622990b.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.c | 20 |
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, |