|
|
|
@ -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); |
|
|
|
|