]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: make use of radeon_gem_init() consistent
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 10 May 2012 17:00:06 +0000 (13:00 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 17 May 2012 10:46:32 +0000 (11:46 +0100)
commit209f999e4d7914677d5d6ed8492c3e8aade64409
tree72933b5525507c358e5ea9e2e61482394d4a6adf
parent9b3b0db6f16805584eabb1ca9312688ec5d5852f
drm/radeon: make use of radeon_gem_init() consistent

All radeon_gem_init() does is initialize the gem objects
list.  radeon_device.c does this explicitly.  r600+ calls
radeon_gem_init() so the list gets initialized twice.  Older
asics don't call it at all and rely on the the init in
radeon_device.c.  Just call radeon_gem_init() in radeon_device.c
and remove the explicit calls from all the newer asics.

All asics call radeon_gem_fini() in their fini pathes.  That
could possibly be cleaned up too.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/rv770.c
drivers/gpu/drm/radeon/si.c