]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/radeon/radeon_fb: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Tue, 13 Jan 2015 19:02:03 +0000 (20:02 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Jan 2015 15:38:51 +0000 (10:38 -0500)
Remove the function radeon_fbdev_total_size() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_fb.c
drivers/gpu/drm/radeon/radeon_mode.h

index 29b9220ec3998daee56bac0969de169268964c13..ab4adf9c5a63c0f10be4c24e7e2682153ab4f2c1 100644 (file)
@@ -419,16 +419,6 @@ void radeon_fbdev_set_suspend(struct radeon_device *rdev, int state)
        fb_set_suspend(rdev->mode_info.rfbdev->helper.fbdev, state);
 }
 
-int radeon_fbdev_total_size(struct radeon_device *rdev)
-{
-       struct radeon_bo *robj;
-       int size = 0;
-
-       robj = gem_to_radeon_bo(rdev->mode_info.rfbdev->rfb.obj);
-       size += radeon_bo_size(robj);
-       return size;
-}
-
 bool radeon_fbdev_robj_is_fb(struct radeon_device *rdev, struct radeon_bo *robj)
 {
        if (robj == gem_to_radeon_bo(rdev->mode_info.rfbdev->rfb.obj))
index 403e733f3002926c22c0c5df269852cdd1070ee4..5135d02b7c1ef719ed870e603dbaa656771e79d7 100644 (file)
@@ -923,7 +923,6 @@ void dce8_program_fmt(struct drm_encoder *encoder);
 int radeon_fbdev_init(struct radeon_device *rdev);
 void radeon_fbdev_fini(struct radeon_device *rdev);
 void radeon_fbdev_set_suspend(struct radeon_device *rdev, int state);
-int radeon_fbdev_total_size(struct radeon_device *rdev);
 bool radeon_fbdev_robj_is_fb(struct radeon_device *rdev, struct radeon_bo *robj);
 
 void radeon_fb_output_poll_changed(struct radeon_device *rdev);