Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312743
b: refs/heads/master
c: 4ce05b4
h: refs/heads/master
i:
  312741: d5dca9c
  312739: a32f101
  312735: b50e3d9
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jul 1, 2012
1 parent 40425cf commit 49913ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: 43d2fd3b9d5be9be879179bec4f08c0c47d1ccd7
refs/heads/master: 4ce05b42603195386fa783c4f070ecc8682c189f
15 changes: 8 additions & 7 deletions trunk/drivers/platform/x86/hp_accel.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,20 +353,22 @@ static int lis3lv02d_remove(struct acpi_device *device, int type)


#ifdef CONFIG_PM
static int lis3lv02d_suspend(struct acpi_device *device)
static int lis3lv02d_suspend(struct device *dev)
{
/* make sure the device is off when we suspend */
lis3lv02d_poweroff(&lis3_dev);
return 0;
}

static int lis3lv02d_resume(struct acpi_device *device)
static int lis3lv02d_resume(struct device *dev)
{
return lis3lv02d_poweron(&lis3_dev);
}

static SIMPLE_DEV_PM_OPS(hp_accel_pm, lis3lv02d_suspend, lis3lv02d_resume);
#define HP_ACCEL_PM (&hp_accel_pm)
#else
#define lis3lv02d_suspend NULL
#define lis3lv02d_resume NULL
#define HP_ACCEL_PM NULL
#endif

/* For the HP MDPS aka 3D Driveguard */
Expand All @@ -377,9 +379,8 @@ static struct acpi_driver lis3lv02d_driver = {
.ops = {
.add = lis3lv02d_add,
.remove = lis3lv02d_remove,
.suspend = lis3lv02d_suspend,
.resume = lis3lv02d_resume,
}
},
.drv.pm = HP_ACCEL_PM,
};

static int __init lis3lv02d_init_module(void)
Expand Down

0 comments on commit 49913ab

Please sign in to comment.