diff options
author | Jerome Glisse <jglisse@redhat.com> | 2009-10-01 12:02:15 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-01 19:34:14 -0400 |
commit | e7d40b9a0a7c857383ef50db9766354bd3be1bf3 (patch) | |
tree | 0073eec70abef565221967567dbfc6592096aa2c /drivers/gpu/drm/radeon/rv770.c | |
parent | 75c8129893d78fd0cbe5c26580cadd6001d904fc (diff) |
drm/radeon/kms: R600/RV770 remove dead code and print message for wrong BIOS
R600 & RV770 family are all using atombios so remove dead code and
print an error message if we fail to find a valid atombios.
Signed-off-by: Jerome Glisse <jglisse@redhat.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 | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index a04e6ee45947..295cf14e3c53 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c | |||
@@ -841,11 +841,7 @@ int rv770_resume(struct radeon_device *rdev) | |||
841 | /* FIXME: what do we want to do here ? */ | 841 | /* FIXME: what do we want to do here ? */ |
842 | } | 842 | } |
843 | /* post card */ | 843 | /* post card */ |
844 | if (rdev->is_atom_bios) { | 844 | atom_asic_init(rdev->mode_info.atom_context); |
845 | atom_asic_init(rdev->mode_info.atom_context); | ||
846 | } else { | ||
847 | radeon_combios_asic_init(rdev->ddev); | ||
848 | } | ||
849 | /* Initialize clocks */ | 845 | /* Initialize clocks */ |
850 | r = radeon_clocks_init(rdev); | 846 | r = radeon_clocks_init(rdev); |
851 | if (r) { | 847 | if (r) { |
@@ -902,8 +898,10 @@ int rv770_init(struct radeon_device *rdev) | |||
902 | return -EINVAL; | 898 | return -EINVAL; |
903 | } | 899 | } |
904 | /* Must be an ATOMBIOS */ | 900 | /* Must be an ATOMBIOS */ |
905 | if (!rdev->is_atom_bios) | 901 | if (!rdev->is_atom_bios) { |
902 | dev_err(rdev->dev, "Expecting atombios for R600 GPU\n"); | ||
906 | return -EINVAL; | 903 | return -EINVAL; |
904 | } | ||
907 | r = radeon_atombios_init(rdev); | 905 | r = radeon_atombios_init(rdev); |
908 | if (r) | 906 | if (r) |
909 | return r; | 907 | return r; |
@@ -1006,11 +1004,7 @@ void rv770_fini(struct radeon_device *rdev) | |||
1006 | radeon_agp_fini(rdev); | 1004 | radeon_agp_fini(rdev); |
1007 | #endif | 1005 | #endif |
1008 | radeon_object_fini(rdev); | 1006 | radeon_object_fini(rdev); |
1009 | if (rdev->is_atom_bios) { | 1007 | radeon_atombios_fini(rdev); |
1010 | radeon_atombios_fini(rdev); | ||
1011 | } else { | ||
1012 | radeon_combios_fini(rdev); | ||
1013 | } | ||
1014 | kfree(rdev->bios); | 1008 | kfree(rdev->bios); |
1015 | rdev->bios = NULL; | 1009 | rdev->bios = NULL; |
1016 | radeon_dummy_page_fini(rdev); | 1010 | radeon_dummy_page_fini(rdev); |