mirror of
https://github.com/torvalds/linux.git
synced 2024-09-20 06:53:04 +00:00
drm/nouveau: Implement switcheroo reprobe with drm_client_dev_hotplug()
Replace the call to drm_fb_helper_output_poll_changed() with a call to drm_client_dev_hotplug(). It is equivalent in functionality, but uses the DRM client infrastructure. v2: - fix commit description Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Danilo Krummrich <dakr@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240812083000.337744-6-tzimmermann@suse.de
This commit is contained in:
parent
a0634663d0
commit
17674d6603
|
@ -58,8 +58,9 @@ static void
|
|||
nouveau_switcheroo_reprobe(struct pci_dev *pdev)
|
||||
{
|
||||
struct nouveau_drm *drm = pci_get_drvdata(pdev);
|
||||
struct drm_device *dev = drm->dev;
|
||||
|
||||
drm_fb_helper_output_poll_changed(drm->dev);
|
||||
drm_client_dev_hotplug(dev);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
Loading…
Reference in New Issue
Block a user