]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/imx: move imx_drm_connector_destroy to imx-tve
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 2 Jun 2024 12:04:52 +0000 (15:04 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 2 Sep 2024 23:35:35 +0000 (02:35 +0300)
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>
drivers/gpu/drm/imx/ipuv3/imx-drm-core.c
drivers/gpu/drm/imx/ipuv3/imx-drm.h
drivers/gpu/drm/imx/ipuv3/imx-tve.c

index 4cfabcf7375a982a5073c4257d5be790680d77e9..189d395349b8fa5a3377ef4121839e730e1701cc 100644 (file)
@@ -34,13 +34,6 @@ module_param(legacyfb_depth, int, 0444);
 
 DEFINE_DRM_GEM_DMA_FOPS(imx_drm_driver_fops);
 
-void imx_drm_connector_destroy(struct drm_connector *connector)
-{
-       drm_connector_unregister(connector);
-       drm_connector_cleanup(connector);
-}
-EXPORT_SYMBOL_GPL(imx_drm_connector_destroy);
-
 static int imx_drm_atomic_check(struct drm_device *dev,
                                struct drm_atomic_state *state)
 {
index e01f026047de715b30a380fe7962868e0be4a6cb..0c85bf83ffbff96d038ebdd5b011ab53e72b4738 100644 (file)
@@ -25,8 +25,6 @@ extern struct platform_driver ipu_drm_driver;
 int imx_drm_encoder_parse_of(struct drm_device *drm,
        struct drm_encoder *encoder, struct device_node *np);
 
-void imx_drm_connector_destroy(struct drm_connector *connector);
-
 int ipu_planes_assign_pre(struct drm_device *dev,
                          struct drm_atomic_state *state);
 
index 29f494bfff67db807e205a9c505788ec09b17bab..d46d07d25f51795b1a569adafb51b9896e0b77d4 100644 (file)
@@ -305,9 +305,15 @@ static int imx_tve_atomic_check(struct drm_encoder *encoder,
        return 0;
 }
 
+static void imx_tve_connector_destroy(struct drm_connector *connector)
+{
+       drm_connector_unregister(connector);
+       drm_connector_cleanup(connector);
+}
+
 static const struct drm_connector_funcs imx_tve_connector_funcs = {
        .fill_modes = drm_helper_probe_single_connector_modes,
-       .destroy = imx_drm_connector_destroy,
+       .destroy = imx_tve_connector_destroy,
        .reset = drm_atomic_helper_connector_reset,
        .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
        .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,