diff options
author | Christoph Hellwig <hch@lst.de> | 2021-07-16 08:16:32 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-07-21 10:29:00 +0200 |
commit | b8779475869a26ffcd2fde279f7b364ec5722d0d (patch) | |
tree | 1ba3ac507cf68ee4e3e0e0a66bff1bc0a6b7944f /drivers/gpu/drm/radeon | |
parent | 6609176f56ad895ba25d4c120c707fb15f45aa4e (diff) | |
download | linux-stable-b8779475869a26ffcd2fde279f7b364ec5722d0d.tar.gz linux-stable-b8779475869a26ffcd2fde279f7b364ec5722d0d.tar.bz2 linux-stable-b8779475869a26ffcd2fde279f7b364ec5722d0d.zip |
vgaarb: provide a vga_client_unregister wrapper
Add a trivial wrapper for the unregister case that sets all fields to
NULL.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210716061634.2446357-6-hch@lst.de
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 46eea01950cb..d781914f8bcb 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -1530,7 +1530,7 @@ void radeon_device_fini(struct radeon_device *rdev) vga_switcheroo_unregister_client(rdev->pdev); if (rdev->flags & RADEON_IS_PX) vga_switcheroo_fini_domain_pm_ops(rdev->dev); - vga_client_register(rdev->pdev, NULL, NULL, NULL); + vga_client_unregister(rdev->pdev); if (rdev->rio_mem) pci_iounmap(rdev->pdev, rdev->rio_mem); rdev->rio_mem = NULL; |