diff options
author | Maaz Mombasawala <maaz.mombasawala@broadcom.com> | 2024-05-01 17:40:33 -0700 |
---|---|---|
committer | Zack Rusin <zack.rusin@broadcom.com> | 2024-10-11 14:31:27 -0400 |
commit | 1b1d5fe66ca591d34c5501aab8f5f09f347e8a3e (patch) | |
tree | 8ea22ca848c720e21e8d092eef615657ba1577ed /drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |
parent | 65b5353193e5a8476814a184e8e1a2627d59f2b5 (diff) | |
download | lwn-1b1d5fe66ca591d34c5501aab8f5f09f347e8a3e.tar.gz lwn-1b1d5fe66ca591d34c5501aab8f5f09f347e8a3e.zip |
drm/vmwgfx: Stop using dev_private to store driver data.
Currently vmwgfx uses the dev_private opaque pointer in drm_device to store
driver data in vmw_private struct. Using dev_private is deprecated, and the
recommendation is to embed struct drm_device in the larger per-device
structure.
The vmwgfx driver already embeds struct drm_device in its struct
vmw_private, so switch to using that exclusively and stop using
dev_private.
Signed-off-by: Maaz Mombasawala <maaz.mombasawala@broadcom.com>
Reviewed-by: Zack Rusin <zack.rusin@broadcom.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240502004033.107533-1-maaz.mombasawala@broadcom.com
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index cf7a89d002e4..2706d0b57a2b 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -860,8 +860,6 @@ static int vmw_driver_load(struct vmw_private *dev_priv, u32 pci_id) bool refuse_dma = false; struct pci_dev *pdev = to_pci_dev(dev_priv->drm.dev); - dev_priv->drm.dev_private = dev_priv; - vmw_sw_context_init(dev_priv); mutex_init(&dev_priv->cmdbuf_mutex); |