Subversion Repositories Kolibri OS

Rev

Rev 5078 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5078 Rev 6296
Line 1... Line 1...
1
/**************************************************************************
1
/**************************************************************************
2
 *
2
 *
3
 * Copyright © 2009 VMware, Inc., Palo Alto, CA., USA
3
 * Copyright © 2009-2011 VMware, Inc., Palo Alto, CA., USA
4
 * All Rights Reserved.
4
 * All Rights Reserved.
5
 *
5
 *
6
 * Permission is hereby granted, free of charge, to any person obtaining a
6
 * Permission is hereby granted, free of charge, to any person obtaining a
7
 * copy of this software and associated documentation files (the
7
 * copy of this software and associated documentation files (the
8
 * "Software"), to deal in the Software without restriction, including
8
 * "Software"), to deal in the Software without restriction, including
Line 55... Line 55...
55
{
55
{
56
}
56
}
Line 57... Line 57...
57
 
57
 
58
int vmw_ttm_global_init(struct vmw_private *dev_priv)
58
int vmw_ttm_global_init(struct vmw_private *dev_priv)
59
{
-
 
60
    ENTER();
-
 
61
 
59
{
62
	struct drm_global_reference *global_ref;
60
	struct drm_global_reference *global_ref;
Line 63... Line 61...
63
	int ret;
61
	int ret;
64
 
62
 
Line 86... Line 84...
86
	if (unlikely(ret != 0)) {
84
	if (unlikely(ret != 0)) {
87
		DRM_ERROR("Failed setting up TTM buffer objects.\n");
85
		DRM_ERROR("Failed setting up TTM buffer objects.\n");
88
		goto out_no_bo;
86
		goto out_no_bo;
89
	}
87
	}
Line 90... Line -...
90
 
-
 
91
    LEAVE();
88
 
92
	return 0;
89
	return 0;
93
out_no_bo:
90
out_no_bo:
94
	drm_global_item_unref(&dev_priv->mem_global_ref);
91
	drm_global_item_unref(&dev_priv->mem_global_ref);
95
	return ret;
92
	return ret;