Commit 121b1a5f authored by Maxime Ripard's avatar Maxime Ripard

drm/vc4: txp: Remove vc4_dev txp pointer

There's no user for that pointer so let's just get rid of it.
Acked-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-50-maxime@cerno.tech
parent 932d860f
...@@ -85,7 +85,6 @@ struct vc4_dev { ...@@ -85,7 +85,6 @@ struct vc4_dev {
struct vc4_hvs *hvs; struct vc4_hvs *hvs;
struct vc4_v3d *v3d; struct vc4_v3d *v3d;
struct vc4_vec *vec; struct vc4_vec *vec;
struct vc4_txp *txp;
struct vc4_hang_state *hang_state; struct vc4_hang_state *hang_state;
......
...@@ -469,7 +469,6 @@ static int vc4_txp_bind(struct device *dev, struct device *master, void *data) ...@@ -469,7 +469,6 @@ static int vc4_txp_bind(struct device *dev, struct device *master, void *data)
{ {
struct platform_device *pdev = to_platform_device(dev); struct platform_device *pdev = to_platform_device(dev);
struct drm_device *drm = dev_get_drvdata(master); struct drm_device *drm = dev_get_drvdata(master);
struct vc4_dev *vc4 = to_vc4_dev(drm);
struct vc4_crtc *vc4_crtc; struct vc4_crtc *vc4_crtc;
struct vc4_txp *txp; struct vc4_txp *txp;
struct drm_crtc *crtc; struct drm_crtc *crtc;
...@@ -523,7 +522,6 @@ static int vc4_txp_bind(struct device *dev, struct device *master, void *data) ...@@ -523,7 +522,6 @@ static int vc4_txp_bind(struct device *dev, struct device *master, void *data)
return ret; return ret;
dev_set_drvdata(dev, txp); dev_set_drvdata(dev, txp);
vc4->txp = txp;
vc4_debugfs_add_regset32(drm, "txp_regs", &txp->regset); vc4_debugfs_add_regset32(drm, "txp_regs", &txp->regset);
...@@ -533,13 +531,9 @@ static int vc4_txp_bind(struct device *dev, struct device *master, void *data) ...@@ -533,13 +531,9 @@ static int vc4_txp_bind(struct device *dev, struct device *master, void *data)
static void vc4_txp_unbind(struct device *dev, struct device *master, static void vc4_txp_unbind(struct device *dev, struct device *master,
void *data) void *data)
{ {
struct drm_device *drm = dev_get_drvdata(master);
struct vc4_dev *vc4 = to_vc4_dev(drm);
struct vc4_txp *txp = dev_get_drvdata(dev); struct vc4_txp *txp = dev_get_drvdata(dev);
vc4_txp_connector_destroy(&txp->connector.base); vc4_txp_connector_destroy(&txp->connector.base);
vc4->txp = NULL;
} }
static const struct component_ops vc4_txp_ops = { static const struct component_ops vc4_txp_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment