aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/bay.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/bay.c')
-rw-r--r--drivers/acpi/bay.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c
index 00d3f3f17a2a..56a5b3fffeb3 100644
--- a/drivers/acpi/bay.c
+++ b/drivers/acpi/bay.c
@@ -333,18 +333,12 @@ static void bay_notify(acpi_handle handle, u32 event, void *data)
333{ 333{
334 struct bay *bay_dev = (struct bay *)data; 334 struct bay *bay_dev = (struct bay *)data;
335 struct device *dev = &bay_dev->pdev->dev; 335 struct device *dev = &bay_dev->pdev->dev;
336 char event_string[12];
337 char *envp[] = { event_string, NULL };
336 338
337 bay_dprintk(handle, "Bay event"); 339 bay_dprintk(handle, "Bay event");
338 340 sprintf(event_string, "BAY_EVENT=%d\n", event);
339 switch(event) { 341 kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp);
340 case ACPI_NOTIFY_BUS_CHECK:
341 case ACPI_NOTIFY_DEVICE_CHECK:
342 case ACPI_NOTIFY_EJECT_REQUEST:
343 kobject_uevent(&dev->kobj, KOBJ_CHANGE);
344 break;
345 default:
346 printk(KERN_ERR PREFIX "Bay: unknown event %d\n", event);
347 }
348} 342}
349 343
350static acpi_status 344static acpi_status