summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/arm/malidp_drv.h
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@redhat.com>2022-10-26 17:59:30 +0200
committerLiviu Dudau <liviu.dudau@arm.com>2022-11-16 10:33:39 +0000
commitaefae8719a9aaede5032ca7331fc3cf65fd7ac7f (patch)
treec78531a1b2c89c398f3d4040ecf3faee61d6b48a /drivers/gpu/drm/arm/malidp_drv.h
parent0e308efe232afdec35d508f5dfae52f03d50efca (diff)
drm/arm/malidp: use drmm_* to allocate driver structures
Use drm managed resources to allocate driver structures and get rid of the deprecated drm_dev_alloc() call and replace it with devm_drm_dev_alloc(). This also serves as preparation to get rid of drm_device->dev_private and to fix use-after-free issues on driver unload. Signed-off-by: Danilo Krummrich <dakr@redhat.com> Signed-off-by: Liviu Dudau <liviu.dudau@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221026155934.125294-2-dakr@redhat.com
Diffstat (limited to 'drivers/gpu/drm/arm/malidp_drv.h')
-rw-r--r--drivers/gpu/drm/arm/malidp_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/arm/malidp_drv.h b/drivers/gpu/drm/arm/malidp_drv.h
index cdfddfabf2d1..00be369b28f1 100644
--- a/drivers/gpu/drm/arm/malidp_drv.h
+++ b/drivers/gpu/drm/arm/malidp_drv.h
@@ -29,6 +29,7 @@ struct malidp_error_stats {
};
struct malidp_drm {
+ struct drm_device base;
struct malidp_hw_device *dev;
struct drm_crtc crtc;
struct drm_writeback_connector mw_connector;