drm/vc4: dpi: Remove vc4_dev dpi pointer
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:38:53 +0000 (19:38 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:08 +0000 (10:46 +0200)
There's no user for that pointer so let's just get rid of it.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-24-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_dpi.c
drivers/gpu/drm/vc4/vc4_drv.h

index ef5e3921062c5953924f9bd5b3a1230539797832..d3625dcb5dcbc6b99a761b04444e3c0f48e59d96 100644 (file)
@@ -269,7 +269,6 @@ static int vc4_dpi_bind(struct device *dev, struct device *master, void *data)
 {
        struct platform_device *pdev = to_platform_device(dev);
        struct drm_device *drm = dev_get_drvdata(master);
-       struct vc4_dev *vc4 = to_vc4_dev(drm);
        struct vc4_dpi *dpi;
        struct vc4_dpi_encoder *vc4_dpi_encoder;
        int ret;
@@ -328,8 +327,6 @@ static int vc4_dpi_bind(struct device *dev, struct device *master, void *data)
 
        dev_set_drvdata(dev, dpi);
 
-       vc4->dpi = dpi;
-
        vc4_debugfs_add_regset32(drm, "dpi_regs", &dpi->regset);
 
        return 0;
@@ -343,8 +340,6 @@ err_destroy_encoder:
 static void vc4_dpi_unbind(struct device *dev, struct device *master,
                           void *data)
 {
-       struct drm_device *drm = dev_get_drvdata(master);
-       struct vc4_dev *vc4 = to_vc4_dev(drm);
        struct vc4_dpi *dpi = dev_get_drvdata(dev);
 
        drm_of_panel_bridge_remove(dev->of_node, 0, 0);
@@ -352,8 +347,6 @@ static void vc4_dpi_unbind(struct device *dev, struct device *master,
        drm_encoder_cleanup(dpi->encoder);
 
        clk_disable_unprepare(dpi->core_clock);
-
-       vc4->dpi = NULL;
 }
 
 static const struct component_ops vc4_dpi_ops = {
index 116e54fc1363bcca9a43fef5c56352aee1c0305a..835d286c28028e803ec49dfaaace34c527b4fc0f 100644 (file)
@@ -84,7 +84,6 @@ struct vc4_dev {
 
        struct vc4_hvs *hvs;
        struct vc4_v3d *v3d;
-       struct vc4_dpi *dpi;
        struct vc4_vec *vec;
        struct vc4_txp *txp;