Merge tag 'pci-v4.17-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[muen/linux.git] / drivers / acpi / scan.c
index a4cbf3e..cc234e6 100644 (file)
@@ -116,6 +116,7 @@ bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent)
 {
        struct acpi_device_physical_node *pn;
        bool offline = true;
+       char *envp[] = { "EVENT=offline", NULL };
 
        /*
         * acpi_container_offline() calls this for all of the container's
@@ -126,7 +127,7 @@ bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent)
        list_for_each_entry(pn, &adev->physical_node_list, node)
                if (device_supports_offline(pn->dev) && !pn->dev->offline) {
                        if (uevent)
-                               kobject_uevent(&pn->dev->kobj, KOBJ_CHANGE);
+                               kobject_uevent_env(&pn->dev->kobj, KOBJ_CHANGE, envp);
 
                        offline = false;
                        break;