Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312732
b: refs/heads/master
c: 707156e
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jul 1, 2012
1 parent 30e68f8 commit e387e5c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 17621e11fda095459e2f986c019f52686c7a4ffb
refs/heads/master: 707156e600dbfd89e129239ee1d1d934cbe2119c
7 changes: 4 additions & 3 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static void acpi_device_release(struct device *dev)
kfree(acpi_dev);
}

static int acpi_device_suspend(struct device *dev, pm_message_t state)
static int acpi_device_suspend(struct device *dev)
{
struct acpi_device *acpi_dev = to_acpi_device(dev);
struct acpi_driver *acpi_drv = acpi_dev->driver;
Expand All @@ -310,6 +310,8 @@ static int acpi_device_resume(struct device *dev)
return 0;
}

static SIMPLE_DEV_PM_OPS(acpi_bus_pm, acpi_device_suspend, acpi_device_resume);

static int acpi_bus_match(struct device *dev, struct device_driver *drv)
{
struct acpi_device *acpi_dev = to_acpi_device(dev);
Expand Down Expand Up @@ -441,12 +443,11 @@ static int acpi_device_remove(struct device * dev)

struct bus_type acpi_bus_type = {
.name = "acpi",
.suspend = acpi_device_suspend,
.resume = acpi_device_resume,
.match = acpi_bus_match,
.probe = acpi_device_probe,
.remove = acpi_device_remove,
.uevent = acpi_device_uevent,
.pm = &acpi_bus_pm,
};

static int acpi_device_register(struct acpi_device *device)
Expand Down

0 comments on commit e387e5c

Please sign in to comment.