/* RETURNS: Pointer to new mode on success, NULL on error.  */
struct drm_display_mode* drm_mode_create(struct drm_device *dev)
/* RETURNS: Pointer to new mode on success, NULL on error.  */
struct drm_display_mode* drm_mode_create(struct drm_device *dev)
{
	struct drm_display_mode *nmode;
	nmode = kzalloc(sizeof(struct drm_display_mode), GFP_KERNEL);
	if (!nmode)
		return NULL;
	drm_mode_object_get(dev, &nmode->base, DRM_MODE_OBJECT_MODE);
	return nmode;
}