Skip to content

Commit

Permalink
drm/i915: don't use ->driver_private anymore
Browse files Browse the repository at this point in the history
Thanks to the to_intel_bo helper, this change is rather trivial.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Apr 20, 2010
1 parent c397b90 commit 62b8b21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ struct drm_i915_gem_object {
atomic_t pending_flip;
};

#define to_intel_bo(x) ((struct drm_i915_gem_object *) (x)->driver_private)
#define to_intel_bo(x) container_of(x, struct drm_i915_gem_object, base)

/**
* Request queue structure.
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -4440,7 +4440,7 @@ struct drm_gem_object * i915_gem_alloc_object(struct drm_device *dev,

obj->agp_type = AGP_USER_MEMORY;

obj->base.driver_private = obj;
obj->base.driver_private = NULL;
obj->obj = &obj->base;
obj->fence_reg = I915_FENCE_REG_NONE;
INIT_LIST_HEAD(&obj->list);
Expand Down

0 comments on commit 62b8b21

Please sign in to comment.