diff options
Diffstat (limited to 'drivers/acpi/container.c')
-rw-r--r-- | drivers/acpi/container.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c index 871aa520ece7..914f56ae4b44 100644 --- a/drivers/acpi/container.c +++ b/drivers/acpi/container.c | |||
@@ -168,7 +168,7 @@ static void container_notify_cb(acpi_handle handle, u32 type, void *context) | |||
168 | if (ACPI_FAILURE(status) || !device) { | 168 | if (ACPI_FAILURE(status) || !device) { |
169 | result = container_device_add(&device, handle); | 169 | result = container_device_add(&device, handle); |
170 | if (!result) | 170 | if (!result) |
171 | kobject_uevent(&device->kobj, | 171 | kobject_uevent(&device->dev.kobj, |
172 | KOBJ_ONLINE); | 172 | KOBJ_ONLINE); |
173 | else | 173 | else |
174 | printk("Failed to add container\n"); | 174 | printk("Failed to add container\n"); |
@@ -176,13 +176,13 @@ static void container_notify_cb(acpi_handle handle, u32 type, void *context) | |||
176 | } else { | 176 | } else { |
177 | if (ACPI_SUCCESS(status)) { | 177 | if (ACPI_SUCCESS(status)) { |
178 | /* device exist and this is a remove request */ | 178 | /* device exist and this is a remove request */ |
179 | kobject_uevent(&device->kobj, KOBJ_OFFLINE); | 179 | kobject_uevent(&device->dev.kobj, KOBJ_OFFLINE); |
180 | } | 180 | } |
181 | } | 181 | } |
182 | break; | 182 | break; |
183 | case ACPI_NOTIFY_EJECT_REQUEST: | 183 | case ACPI_NOTIFY_EJECT_REQUEST: |
184 | if (!acpi_bus_get_device(handle, &device) && device) { | 184 | if (!acpi_bus_get_device(handle, &device) && device) { |
185 | kobject_uevent(&device->kobj, KOBJ_OFFLINE); | 185 | kobject_uevent(&device->dev.kobj, KOBJ_OFFLINE); |
186 | } | 186 | } |
187 | break; | 187 | break; |
188 | default: | 188 | default: |