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

drm/imx: move imx_drm_connector_destroy to imx-tve

The imx-tve driver is the only remaining user of
imx_drm_connector_destroy(). Move the function to imx-tve.c

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Rob Herring <robh@kernel.org>
Tested-by: Chris Healy <cphealy@gmail.com>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de> # on imx6q-nitrogen6x
Link: https://patchwork.freedesktop.org/patch/msgid/20240602-drm-imx-cleanup-v3-12-e549e2a43100@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

+7 -10
-7
drivers/gpu/drm/imx/ipuv3/imx-drm-core.c
··· 34 34 35 35 DEFINE_DRM_GEM_DMA_FOPS(imx_drm_driver_fops); 36 36 37 - void imx_drm_connector_destroy(struct drm_connector *connector) 38 - { 39 - drm_connector_unregister(connector); 40 - drm_connector_cleanup(connector); 41 - } 42 - EXPORT_SYMBOL_GPL(imx_drm_connector_destroy); 43 - 44 37 static int imx_drm_atomic_check(struct drm_device *dev, 45 38 struct drm_atomic_state *state) 46 39 {
-2
drivers/gpu/drm/imx/ipuv3/imx-drm.h
··· 25 25 int imx_drm_encoder_parse_of(struct drm_device *drm, 26 26 struct drm_encoder *encoder, struct device_node *np); 27 27 28 - void imx_drm_connector_destroy(struct drm_connector *connector); 29 - 30 28 int ipu_planes_assign_pre(struct drm_device *dev, 31 29 struct drm_atomic_state *state); 32 30
+7 -1
drivers/gpu/drm/imx/ipuv3/imx-tve.c
··· 305 305 return 0; 306 306 } 307 307 308 + static void imx_tve_connector_destroy(struct drm_connector *connector) 309 + { 310 + drm_connector_unregister(connector); 311 + drm_connector_cleanup(connector); 312 + } 313 + 308 314 static const struct drm_connector_funcs imx_tve_connector_funcs = { 309 315 .fill_modes = drm_helper_probe_single_connector_modes, 310 - .destroy = imx_drm_connector_destroy, 316 + .destroy = imx_tve_connector_destroy, 311 317 .reset = drm_atomic_helper_connector_reset, 312 318 .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, 313 319 .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,