Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: remove radeon_fb_{add,remove}_connector functions

drm_fb_helper_{add,remove}_one_connector() are dummy functions now
and serve no purpose. Hence remove their calls.

This is the preparatory step for removing the
drm_fb_helper_{add,remove}_one_connector() functions from
drm_fb_helper.h

Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200305120434.111091-3-pankaj.laxminarayan.bharadiya@intel.com

authored by

Pankaj Bharadiya and committed by
Daniel Vetter
c8b4a4b1 2dea2d11

-25
-10
drivers/gpu/drm/radeon/radeon_dp_mst.c
··· 303 303 304 304 static void radeon_dp_register_mst_connector(struct drm_connector *connector) 305 305 { 306 - struct drm_device *dev = connector->dev; 307 - struct radeon_device *rdev = dev->dev_private; 308 - 309 - radeon_fb_add_connector(rdev, connector); 310 - 311 306 drm_connector_register(connector); 312 307 } 313 308 314 309 static void radeon_dp_destroy_mst_connector(struct drm_dp_mst_topology_mgr *mgr, 315 310 struct drm_connector *connector) 316 311 { 317 - struct radeon_connector *master = container_of(mgr, struct radeon_connector, mst_mgr); 318 - struct drm_device *dev = master->base.dev; 319 - struct radeon_device *rdev = dev->dev_private; 320 - 321 312 drm_connector_unregister(connector); 322 - radeon_fb_remove_connector(rdev, connector); 323 313 drm_connector_cleanup(connector); 324 314 325 315 kfree(connector);
-12
drivers/gpu/drm/radeon/radeon_fb.c
··· 403 403 return true; 404 404 return false; 405 405 } 406 - 407 - void radeon_fb_add_connector(struct radeon_device *rdev, struct drm_connector *connector) 408 - { 409 - if (rdev->mode_info.rfbdev) 410 - drm_fb_helper_add_one_connector(&rdev->mode_info.rfbdev->helper, connector); 411 - } 412 - 413 - void radeon_fb_remove_connector(struct radeon_device *rdev, struct drm_connector *connector) 414 - { 415 - if (rdev->mode_info.rfbdev) 416 - drm_fb_helper_remove_one_connector(&rdev->mode_info.rfbdev->helper, connector); 417 - }
-3
drivers/gpu/drm/radeon/radeon_mode.h
··· 986 986 987 987 void radeon_crtc_handle_vblank(struct radeon_device *rdev, int crtc_id); 988 988 989 - void radeon_fb_add_connector(struct radeon_device *rdev, struct drm_connector *connector); 990 - void radeon_fb_remove_connector(struct radeon_device *rdev, struct drm_connector *connector); 991 - 992 989 void radeon_crtc_handle_flip(struct radeon_device *rdev, int crtc_id); 993 990 994 991 int radeon_align_pitch(struct radeon_device *rdev, int width, int bpp, bool tiled);