diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-05-10 13:00:06 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-17 06:46:32 -0400 |
commit | 1b9c3dd0220600391611637c2f04371dbc896e21 (patch) | |
tree | 72933b5525507c358e5ea9e2e61482394d4a6adf /drivers/gpu/drm/radeon/rv770.c | |
parent | c1d2dbd2ad39b7870c741404220fd251dc69c678 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rv770.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 40f82e22a621..c2f473bc13b8 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c | |||
@@ -1175,10 +1175,6 @@ int rv770_init(struct radeon_device *rdev) | |||
1175 | { | 1175 | { |
1176 | int r; | 1176 | int r; |
1177 | 1177 | ||
1178 | /* This don't do much */ | ||
1179 | r = radeon_gem_init(rdev); | ||
1180 | if (r) | ||
1181 | return r; | ||
1182 | /* Read BIOS */ | 1178 | /* Read BIOS */ |
1183 | if (!radeon_get_bios(rdev)) { | 1179 | if (!radeon_get_bios(rdev)) { |
1184 | if (ASIC_IS_AVIVO(rdev)) | 1180 | if (ASIC_IS_AVIVO(rdev)) |