From: Varad Gautam <varad.gautam@xxxxxxxxxxxxx> allow reading the drm file from userspace. Signed-off-by: Varad Gautam <varad.gautam@xxxxxxxxxxxxx> --- drivers/gpu/drm/cirrus/cirrus_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.c b/drivers/gpu/drm/cirrus/cirrus_drv.c index d893ea21a359..bae34f5c2c02 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.c +++ b/drivers/gpu/drm/cirrus/cirrus_drv.c @@ -122,6 +122,7 @@ static int cirrus_pm_resume(struct device *dev) static const struct file_operations cirrus_driver_fops = { .owner = THIS_MODULE, .open = drm_open, + .read = drm_read, .release = drm_release, .unlocked_ioctl = drm_ioctl, .mmap = cirrus_mmap, -- 2.13.1 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel