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:
Dan Williams 2012-08-17 15:31:57 -05:00
parent 0065165901
commit ef4f6a2e55

View file

@ -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)