Skip to content

Commit

Permalink
drm/msm: remove msm_drm_private::bridges field
Browse files Browse the repository at this point in the history
As all output devices have switched to devm_drm_bridge_add(), we can
drop the bridges array from struct msm_drm_private.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/561641/
Signed-off-by: Rob Clark <robdclark@chromium.org>
  • Loading branch information
Dmitry Baryshkov authored and Rob Clark committed Oct 9, 2023
1 parent 61a72d5 commit 4d1a1e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions drivers/gpu/drm/msm/msm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,6 @@ static int msm_drm_uninit(struct device *dev)

drm_mode_config_cleanup(ddev);

for (i = 0; i < priv->num_bridges; i++)
drm_bridge_remove(priv->bridges[i]);
priv->num_bridges = 0;

if (kms) {
pm_runtime_get_sync(dev);
msm_irq_uninstall(ddev);
Expand Down
3 changes: 0 additions & 3 deletions drivers/gpu/drm/msm/msm_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,6 @@ struct msm_drm_private {

struct msm_drm_thread event_thread[MAX_CRTCS];

unsigned int num_bridges;
struct drm_bridge *bridges[MAX_BRIDGES];

/* VRAM carveout, used when no IOMMU: */
struct {
unsigned long size;
Expand Down

0 comments on commit 4d1a1e4

Please sign in to comment.