Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165221
b: refs/heads/master
c: ff27e1f
h: refs/heads/master
i:
  165219: e8874d8
v: v3
  • Loading branch information
Borislav Petkov authored and Len Brown committed Sep 19, 2009
1 parent 527c5ef commit 58a24ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 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: ded0cdfc6a7673916b0878c32fa8ba566b4f8cdb
refs/heads/master: ff27e1f3037535a547e2474eecb688428d654dc3
22 changes: 9 additions & 13 deletions trunk/drivers/platform/x86/acerhdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
*/
#undef START_IN_KERNEL_MODE

#define DRV_VER "0.5.16"
#define DRV_VER "0.5.17"

/*
* According to the Atom N270 datasheet,
Expand Down Expand Up @@ -435,7 +435,7 @@ struct thermal_cooling_device_ops acerhdf_cooling_ops = {
};

/* suspend / resume functionality */
static int acerhdf_suspend(struct platform_device *dev, pm_message_t state)
static int acerhdf_suspend(struct device *dev)
{
if (kernelmode)
acerhdf_change_fanstate(ACERHDF_FAN_AUTO);
Expand All @@ -446,14 +446,6 @@ static int acerhdf_suspend(struct platform_device *dev, pm_message_t state)
return 0;
}

static int acerhdf_resume(struct platform_device *device)
{
if (verbose)
pr_notice("resuming\n");

return 0;
}

static int __devinit acerhdf_probe(struct platform_device *device)
{
return 0;
Expand All @@ -464,15 +456,19 @@ static int acerhdf_remove(struct platform_device *device)
return 0;
}

static struct dev_pm_ops acerhdf_pm_ops = {
.suspend = acerhdf_suspend,
.freeze = acerhdf_suspend,
};

static struct platform_driver acerhdf_driver = {
.driver = {
.name = "acerhdf",
.name = "acerhdf",
.owner = THIS_MODULE,
.pm = &acerhdf_pm_ops,
},
.probe = acerhdf_probe,
.remove = acerhdf_remove,
.suspend = acerhdf_suspend,
.resume = acerhdf_resume,
};


Expand Down

0 comments on commit 58a24ad

Please sign in to comment.