Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312742
b: refs/heads/master
c: 43d2fd3
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jul 1, 2012
1 parent d5dca9c commit 40425cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: d202f77d2eb707d03a16adf952a397675cb2fc81
refs/heads/master: 43d2fd3b9d5be9be879179bec4f08c0c47d1ccd7
14 changes: 8 additions & 6 deletions trunk/drivers/platform/x86/toshiba_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1296,9 +1296,9 @@ static void toshiba_acpi_notify(struct acpi_device *acpi_dev, u32 event)
}
}

static int toshiba_acpi_suspend(struct acpi_device *acpi_dev)
static int toshiba_acpi_suspend(struct device *device)
{
struct toshiba_acpi_dev *dev = acpi_driver_data(acpi_dev);
struct toshiba_acpi_dev *dev = acpi_driver_data(to_acpi_device(device));
u32 result;

if (dev->hotkey_dev)
Expand All @@ -1307,9 +1307,9 @@ static int toshiba_acpi_suspend(struct acpi_device *acpi_dev)
return 0;
}

static int toshiba_acpi_resume(struct acpi_device *acpi_dev)
static int toshiba_acpi_resume(struct device *device)
{
struct toshiba_acpi_dev *dev = acpi_driver_data(acpi_dev);
struct toshiba_acpi_dev *dev = acpi_driver_data(to_acpi_device(device));
u32 result;

if (dev->hotkey_dev)
Expand All @@ -1318,6 +1318,9 @@ static int toshiba_acpi_resume(struct acpi_device *acpi_dev)
return 0;
}

static SIMPLE_DEV_PM_OPS(toshiba_acpi_pm,
toshiba_acpi_suspend, toshiba_acpi_resume);

static struct acpi_driver toshiba_acpi_driver = {
.name = "Toshiba ACPI driver",
.owner = THIS_MODULE,
Expand All @@ -1327,9 +1330,8 @@ static struct acpi_driver toshiba_acpi_driver = {
.add = toshiba_acpi_add,
.remove = toshiba_acpi_remove,
.notify = toshiba_acpi_notify,
.suspend = toshiba_acpi_suspend,
.resume = toshiba_acpi_resume,
},
.drv.pm = &toshiba_acpi_pm,
};

static int __init toshiba_acpi_init(void)
Expand Down

0 comments on commit 40425cf

Please sign in to comment.