• Andreas Heider's avatar
    drm/nouveau: Check dsm on switcheroo unregister · 2f3787aa
    Andreas Heider authored
    Currently vga_switcheroo_unregister_handler is called unconditionally when
    nouveau is unloaded, even when nouveau never registered a handler. This
    interferes with other switcheroo handlers, as vga_switcheroo doesn't check who
    called unregister_handler, but simply unregisters the current handler. This
    patch adds a check so unregister is only called if a handler was registered by
    nouveau before.
    Signed-off-by: default avatarAndreas Heider <andreas@meetr.de>
    Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    2f3787aa
nouveau_acpi.c 11.1 KB