diff options
author | Len Brown <len.brown@intel.com> | 2007-02-06 15:31:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-02-06 15:31:00 -0500 |
commit | 57e1c5c87db512629dd44ddeb882a5aaf0e4299e (patch) | |
tree | e71e8a132d4f696beeae1bdab59efeed9517ba66 /drivers/acpi/container.c | |
parent | 62d0cfcb27cf755cebdc93ca95dabc83608007cd (diff) | |
parent | 76a2e849df47697706024262a8bbb83432b8bde7 (diff) |
Pull test into release branch
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 0a1863ec91f3..69a68fd394cf 100644 --- a/drivers/acpi/container.c +++ b/drivers/acpi/container.c | |||
@@ -167,7 +167,7 @@ static void container_notify_cb(acpi_handle handle, u32 type, void *context) | |||
167 | if (ACPI_FAILURE(status) || !device) { | 167 | if (ACPI_FAILURE(status) || !device) { |
168 | result = container_device_add(&device, handle); | 168 | result = container_device_add(&device, handle); |
169 | if (!result) | 169 | if (!result) |
170 | kobject_uevent(&device->kobj, | 170 | kobject_uevent(&device->dev.kobj, |
171 | KOBJ_ONLINE); | 171 | KOBJ_ONLINE); |
172 | else | 172 | else |
173 | printk("Failed to add container\n"); | 173 | printk("Failed to add container\n"); |
@@ -175,13 +175,13 @@ static void container_notify_cb(acpi_handle handle, u32 type, void *context) | |||
175 | } else { | 175 | } else { |
176 | if (ACPI_SUCCESS(status)) { | 176 | if (ACPI_SUCCESS(status)) { |
177 | /* device exist and this is a remove request */ | 177 | /* device exist and this is a remove request */ |
178 | kobject_uevent(&device->kobj, KOBJ_OFFLINE); | 178 | kobject_uevent(&device->dev.kobj, KOBJ_OFFLINE); |
179 | } | 179 | } |
180 | } | 180 | } |
181 | break; | 181 | break; |
182 | case ACPI_NOTIFY_EJECT_REQUEST: | 182 | case ACPI_NOTIFY_EJECT_REQUEST: |
183 | if (!acpi_bus_get_device(handle, &device) && device) { | 183 | if (!acpi_bus_get_device(handle, &device) && device) { |
184 | kobject_uevent(&device->kobj, KOBJ_OFFLINE); | 184 | kobject_uevent(&device->dev.kobj, KOBJ_OFFLINE); |
185 | } | 185 | } |
186 | break; | 186 | break; |
187 | default: | 187 | default: |