diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-09-15 10:13:51 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-09-16 15:53:04 -0400 |
commit | 0aa3e2d0cbff4c42997d75f35bb660fd382544e6 (patch) | |
tree | 4d645ac36842245a3ad912f69108d19e33519e60 | |
parent | 9f31a0b0328cb70b9ea1058579710fb1439ee332 (diff) |
drm/radeon/radeon_device: remove unused function
We get 2 warnings when building kernel with W=1:
drivers/gpu/drm/radeon/radeon_device.c:1961:5: warning: no previous prototype for 'radeon_debugfs_init' [-Wmissing-prototypes]
drivers/gpu/drm/radeon/radeon_device.c:1966:6: warning: no previous prototype for 'radeon_debugfs_cleanup' [-Wmissing-prototypes]
In fact, these functions are dummy, but can be removed,
so this patch removes them.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 11 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_drv.c | 9 |
2 files changed, 0 insertions, 20 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 8425b1248eaf..b423c0159581 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c | |||
@@ -1958,14 +1958,3 @@ static void radeon_debugfs_remove_files(struct radeon_device *rdev) | |||
1958 | } | 1958 | } |
1959 | #endif | 1959 | #endif |
1960 | } | 1960 | } |
1961 | |||
1962 | #if defined(CONFIG_DEBUG_FS) | ||
1963 | int radeon_debugfs_init(struct drm_minor *minor) | ||
1964 | { | ||
1965 | return 0; | ||
1966 | } | ||
1967 | |||
1968 | void radeon_debugfs_cleanup(struct drm_minor *minor) | ||
1969 | { | ||
1970 | } | ||
1971 | #endif | ||
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 5fdd48c12b18..8f779e4ee3a5 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c | |||
@@ -155,11 +155,6 @@ void radeon_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); | |||
155 | extern long radeon_kms_compat_ioctl(struct file *filp, unsigned int cmd, | 155 | extern long radeon_kms_compat_ioctl(struct file *filp, unsigned int cmd, |
156 | unsigned long arg); | 156 | unsigned long arg); |
157 | 157 | ||
158 | #if defined(CONFIG_DEBUG_FS) | ||
159 | int radeon_debugfs_init(struct drm_minor *minor); | ||
160 | void radeon_debugfs_cleanup(struct drm_minor *minor); | ||
161 | #endif | ||
162 | |||
163 | /* atpx handler */ | 158 | /* atpx handler */ |
164 | #if defined(CONFIG_VGA_SWITCHEROO) | 159 | #if defined(CONFIG_VGA_SWITCHEROO) |
165 | void radeon_register_atpx_handler(void); | 160 | void radeon_register_atpx_handler(void); |
@@ -550,10 +545,6 @@ static struct drm_driver kms_driver = { | |||
550 | .disable_vblank = radeon_disable_vblank_kms, | 545 | .disable_vblank = radeon_disable_vblank_kms, |
551 | .get_vblank_timestamp = radeon_get_vblank_timestamp_kms, | 546 | .get_vblank_timestamp = radeon_get_vblank_timestamp_kms, |
552 | .get_scanout_position = radeon_get_crtc_scanoutpos, | 547 | .get_scanout_position = radeon_get_crtc_scanoutpos, |
553 | #if defined(CONFIG_DEBUG_FS) | ||
554 | .debugfs_init = radeon_debugfs_init, | ||
555 | .debugfs_cleanup = radeon_debugfs_cleanup, | ||
556 | #endif | ||
557 | .irq_preinstall = radeon_driver_irq_preinstall_kms, | 548 | .irq_preinstall = radeon_driver_irq_preinstall_kms, |
558 | .irq_postinstall = radeon_driver_irq_postinstall_kms, | 549 | .irq_postinstall = radeon_driver_irq_postinstall_kms, |
559 | .irq_uninstall = radeon_driver_irq_uninstall_kms, | 550 | .irq_uninstall = radeon_driver_irq_uninstall_kms, |