Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243124
b: refs/heads/master
c: 9a0b74f
h: refs/heads/master
v: v3
  • Loading branch information
Pali Rohár authored and Matthew Garrett committed Mar 28, 2011
1 parent b1510c1 commit 09743d2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 143a4c0284dc2378b3ce78866b3548d90121d843
refs/heads/master: 9a0b74fd873005122145364d3dfe4e1c9da1dad2
14 changes: 14 additions & 0 deletions trunk/drivers/platform/x86/acer-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,7 @@ static int __devinit acer_led_init(struct device *dev)

static void acer_led_exit(void)
{
set_u32(LED_OFF, ACER_CAP_MAILLED);
led_classdev_unregister(&mail_led);
}

Expand Down Expand Up @@ -1553,6 +1554,7 @@ pm_message_t state)

if (has_cap(ACER_CAP_MAILLED)) {
get_u32(&value, ACER_CAP_MAILLED);
set_u32(LED_OFF, ACER_CAP_MAILLED);
data->mailled = value;
}

Expand Down Expand Up @@ -1580,6 +1582,17 @@ static int acer_platform_resume(struct platform_device *device)
return 0;
}

static void acer_platform_shutdown(struct platform_device *device)
{
struct acer_data *data = &interface->data;

if (!data)
return;

if (has_cap(ACER_CAP_MAILLED))
set_u32(LED_OFF, ACER_CAP_MAILLED);
}

static struct platform_driver acer_platform_driver = {
.driver = {
.name = "acer-wmi",
Expand All @@ -1589,6 +1602,7 @@ static struct platform_driver acer_platform_driver = {
.remove = acer_platform_remove,
.suspend = acer_platform_suspend,
.resume = acer_platform_resume,
.shutdown = acer_platform_shutdown,
};

static struct platform_device *acer_platform_device;
Expand Down

0 comments on commit 09743d2

Please sign in to comment.