Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62520
b: refs/heads/master
c: 3f8698d
h: refs/heads/master
v: v3
  • Loading branch information
Kristen Carlson Accardi authored and Len Brown committed Jun 2, 2007
1 parent 74c4533 commit 519cea6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f9767df1346c9ce09d6e51b9f34b851e3d94fad
refs/heads/master: 3f8698d4d3f72252980575fb8d7b4cafeb5dd0a2
14 changes: 4 additions & 10 deletions trunk/drivers/acpi/bay.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,12 @@ static void bay_notify(acpi_handle handle, u32 event, void *data)
{
struct bay *bay_dev = (struct bay *)data;
struct device *dev = &bay_dev->pdev->dev;
char event_string[12];
char *envp[] = { event_string, NULL };

bay_dprintk(handle, "Bay event");

switch(event) {
case ACPI_NOTIFY_BUS_CHECK:
case ACPI_NOTIFY_DEVICE_CHECK:
case ACPI_NOTIFY_EJECT_REQUEST:
kobject_uevent(&dev->kobj, KOBJ_CHANGE);
break;
default:
printk(KERN_ERR PREFIX "Bay: unknown event %d\n", event);
}
sprintf(event_string, "BAY_EVENT=%d\n", event);
kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp);
}

static acpi_status
Expand Down

0 comments on commit 519cea6

Please sign in to comment.