mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 18:00:18 +01:00
rfkill: detect "acpi" subsystem devices as platform devices (bgo #680632)
Some rfkill drivers (sony-laptop, ideapad-laptop, classmate-laptop, etc) register their rfkill drivers under the "acpi" subsystem instead of the platform subsystem, but the semantics are the same.
This commit is contained in:
parent
0065165901
commit
ef4f6a2e55
1 changed files with 4 additions and 1 deletions
|
|
@ -131,7 +131,10 @@ killswitch_new (GUdevDevice *device, RfKillType rtype)
|
|||
driver = "(unknown)";
|
||||
ks->driver = g_strdup (driver);
|
||||
|
||||
if (g_strcmp0 (subsys, "platform") == 0 || g_strcmp0 (parent_subsys, "platform") == 0)
|
||||
if ( g_strcmp0 (subsys, "platform") == 0
|
||||
|| g_strcmp0 (parent_subsys, "platform") == 0
|
||||
|| g_strcmp0 (subsys, "acpi") == 0
|
||||
|| g_strcmp0 (parent_subsys, "acpi") == 0)
|
||||
ks->platform = TRUE;
|
||||
|
||||
if (grandparent)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue