Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312747
b: refs/heads/master
c: 44cb98c
h: refs/heads/master
i:
  312745: b03724a
  312743: 49913ab
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jul 1, 2012
1 parent ad492b2 commit bd525c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: d69239ae5847b29ea1902b2dd86f5afa41144ba3
refs/heads/master: 44cb98c48e19f506e178c519f5da2c23a156e002
8 changes: 5 additions & 3 deletions trunk/drivers/platform/x86/xo15-ebook.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ static void ebook_switch_notify(struct acpi_device *device, u32 event)
}
}

static int ebook_switch_resume(struct acpi_device *device)
static int ebook_switch_resume(struct device *dev)
{
return ebook_send_state(device);
return ebook_send_state(to_acpi_device(dev));
}

static SIMPLE_DEV_PM_OPS(ebook_switch_pm, NULL, ebook_switch_resume);

static int ebook_switch_add(struct acpi_device *device)
{
struct ebook_switch *button;
Expand Down Expand Up @@ -161,10 +163,10 @@ static struct acpi_driver xo15_ebook_driver = {
.ids = ebook_device_ids,
.ops = {
.add = ebook_switch_add,
.resume = ebook_switch_resume,
.remove = ebook_switch_remove,
.notify = ebook_switch_notify,
},
.drv.pm = &ebook_switch_pm,
};

static int __init xo15_ebook_init(void)
Expand Down

0 comments on commit bd525c2

Please sign in to comment.