Skip to content

Commit

Permalink
fujitsu-tablet: Use struct dev_pm_ops for power management
Browse files Browse the repository at this point in the history
Make the fujitsu-tablet driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct acpi_device_ops.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Rafael J. Wysocki committed Jul 1, 2012
1 parent 81bc495 commit d26c844
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/platform/x86/fujitsu-tablet.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,21 +440,23 @@ static int __devexit acpi_fujitsu_remove(struct acpi_device *adev, int type)
return 0;
}

static int acpi_fujitsu_resume(struct acpi_device *adev)
static int acpi_fujitsu_resume(struct device *dev)
{
fujitsu_reset();
return 0;
}

static SIMPLE_DEV_PM_OPS(acpi_fujitsu_pm, NULL, acpi_fujitsu_resume);

static struct acpi_driver acpi_fujitsu_driver = {
.name = MODULENAME,
.class = "hotkey",
.ids = fujitsu_ids,
.ops = {
.add = acpi_fujitsu_add,
.remove = acpi_fujitsu_remove,
.resume = acpi_fujitsu_resume,
}
},
.drv.pm = &acpi_fujitsu_pm,
};

static int __init fujitsu_module_init(void)
Expand Down

0 comments on commit d26c844

Please sign in to comment.