diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-09-15 11:53:35 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-10-16 12:47:45 +0300 |
commit | 5417750d5ee645eb4169e1e8dc467b0b7b7329fa (patch) | |
tree | 969d14e3052ff4c9dc9a22471799e065bd85bbc7 /drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h | |
parent | 3d77d2ac7d9d5218a1f3df49e5bf8bd5c4f35b5a (diff) | |
download | linux-5417750d5ee645eb4169e1e8dc467b0b7b7329fa.tar.xz |
drm: renesas: shmobile: Embed drm_device in shmob_drm_device
Embedding drm_device in shmob_drm_device allows us to use the DRM
managed API to allocate both structures in one go, simplifying error
handling.
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/abbf95021191824f44cc8c52e4afbde93d44363a.1694767209.git.geert+renesas@glider.be
Diffstat (limited to 'drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h')
-rw-r--r-- | drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h b/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h index 16d830168b2a..77bb0da48f37 100644 --- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h +++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.h @@ -32,7 +32,7 @@ struct shmob_drm_device { unsigned int irq; spinlock_t irq_lock; /* Protects hardware LDINTR register */ - struct drm_device *ddev; + struct drm_device ddev; struct shmob_drm_crtc crtc; struct drm_encoder encoder; |