diff options
author | Daniel Vetter <[email protected]> | 2020-04-15 09:40:30 +0200 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2020-04-28 16:13:03 +0200 |
commit | cd8294540776f7986b7cf658a3579d576853610c (patch) | |
tree | b373adb239c576857f9876a8b9c7d13e9aaffded /drivers/gpu/drm/aspeed/aspeed_gfx_out.c | |
parent | e95d2f40124992fb60a150e297b6fe96cc4ac741 (diff) |
drm/aspeed: Use devm_drm_dev_alloc
As usual, we can drop the drm_dev_put() and need to embed the
drm_device. Since it's so few, also go right ahead and leave
drm_device->dev_private set to NULL, so that we always use the
container_of() upcast, which is faster anyway.
Acked-by: Sam Ravnborg <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Andrew Jeffery <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/aspeed/aspeed_gfx_out.c')
-rw-r--r-- | drivers/gpu/drm/aspeed/aspeed_gfx_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_out.c b/drivers/gpu/drm/aspeed/aspeed_gfx_out.c index 67ee5fa10055..6759cb88415a 100644 --- a/drivers/gpu/drm/aspeed/aspeed_gfx_out.c +++ b/drivers/gpu/drm/aspeed/aspeed_gfx_out.c @@ -28,7 +28,7 @@ static const struct drm_connector_funcs aspeed_gfx_connector_funcs = { int aspeed_gfx_create_output(struct drm_device *drm) { - struct aspeed_gfx *priv = drm->dev_private; + struct aspeed_gfx *priv = to_aspeed_gfx(drm); int ret; priv->connector.dpms = DRM_MODE_DPMS_OFF; |