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