Subversion Repositories Kolibri OS

Rev

Rev 1179 | Rev 1321 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1179 Rev 1221
Line 480... Line 480...
480
		drm_mode_remove(connector, mode);
480
		drm_mode_remove(connector, mode);
Line 481... Line 481...
481
 
481
 
482
	list_for_each_entry_safe(mode, t, &connector->user_modes, head)
482
	list_for_each_entry_safe(mode, t, &connector->user_modes, head)
Line -... Line 483...
-
 
483
		drm_mode_remove(connector, mode);
483
		drm_mode_remove(connector, mode);
484
 
484
 
485
	kfree(connector->fb_helper_private);
485
	mutex_lock(&dev->mode_config.mutex);
486
	mutex_lock(&dev->mode_config.mutex);
486
	drm_mode_object_put(dev, &connector->base);
487
	drm_mode_object_put(dev, &connector->base);
487
	list_del(&connector->head);
488
	list_del(&connector->head);
Line 1175... Line 1176...
1175
out:
1176
out:
1176
	mutex_unlock(&dev->mode_config.mutex);
1177
	mutex_unlock(&dev->mode_config.mutex);
1177
	return ret;
1178
	return ret;
1178
}
1179
}
Line 1179... Line -...
1179
 
-
 
1180
 
1180
 
1181
/**
1181
/**
1182
 * drm_mode_getcrtc - get CRTC configuration
1182
 * drm_mode_getcrtc - get CRTC configuration
1183
 * @inode: inode from the ioctl
1183
 * @inode: inode from the ioctl
1184
 * @filp: file * from the ioctl
1184
 * @filp: file * from the ioctl
Line 1556... Line 1556...
1556
	struct drm_mode_cursor *req = data;
1556
	struct drm_mode_cursor *req = data;
1557
	struct drm_mode_object *obj;
1557
	struct drm_mode_object *obj;
1558
	struct drm_crtc *crtc;
1558
	struct drm_crtc *crtc;
1559
	int ret = 0;
1559
	int ret = 0;
Line 1560... Line -...
1560
 
-
 
1561
	DRM_DEBUG_KMS("\n");
-
 
1562
 
1560
 
1563
	if (!req->flags) {
1561
	if (!req->flags) {
1564
		DRM_ERROR("no operation set\n");
1562
		DRM_ERROR("no operation set\n");
1565
		return -EINVAL;
1563
		return -EINVAL;
Line 1972... Line 1970...
1972
 
1970
 
1973
	if (name)
1971
	if (name)
Line 1974... Line 1972...
1974
		strncpy(property->name, name, DRM_PROP_NAME_LEN);
1972
		strncpy(property->name, name, DRM_PROP_NAME_LEN);
1975
 
-
 
1976
	list_add_tail(&property->head, &dev->mode_config.property_list);
-
 
1977
 
-
 
1978
    dbgprintf("%s %x name %s\n", __FUNCTION__, property, name);
1973
 
1979
 
1974
	list_add_tail(&property->head, &dev->mode_config.property_list);
1980
	return property;
1975
	return property;
1981
fail:
1976
fail:
1982
	kfree(property);
1977
	kfree(property);