diff options
author | Dave Airlie <airlied@redhat.com> | 2012-09-12 15:55:05 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-08-29 13:30:38 +1000 |
commit | 13bb9cc8726c716a7f271fc2c760ba15e1fdd38c (patch) | |
tree | 6b2d08a3316b7f5e76869c881a8b2544e5b76dd0 /drivers/gpu/drm/drm_fops.c | |
parent | 246efa4a072f3a2e03010ef0b78b0974ec69c377 (diff) | |
download | blackbird-obmc-linux-13bb9cc8726c716a7f271fc2c760ba15e1fdd38c.tar.gz blackbird-obmc-linux-13bb9cc8726c716a7f271fc2c760ba15e1fdd38c.zip |
drm: allow open of dynamic off devices.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 2d2401e9c5ae..136c949307ba 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c @@ -219,7 +219,7 @@ static int drm_open_helper(struct inode *inode, struct file *filp, return -EBUSY; /* No exclusive opens */ if (!drm_cpu_valid()) return -EINVAL; - if (dev->switch_power_state != DRM_SWITCH_POWER_ON) + if (dev->switch_power_state != DRM_SWITCH_POWER_ON && dev->switch_power_state != DRM_SWITCH_POWER_DYNAMIC_OFF) return -EINVAL; DRM_DEBUG("pid = %d, minor = %d\n", task_pid_nr(current), minor_id); |