diff options
author | Jean Delvare <jdelvare@suse.de> | 2018-04-25 12:53:40 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-04-30 11:39:28 +0300 |
commit | a9c8088c7988e3a8a364cac9c26eba9ee2ea6153 (patch) | |
tree | b33489a25d437d1d4a196ebc5222e4088e98dc31 /drivers/i2c/busses/i2c-i801.c | |
parent | e8f39e9fc0e0b7bce24922da925af820bacb8ef8 (diff) | |
download | linux-a9c8088c7988e3a8a364cac9c26eba9ee2ea6153.tar.xz |
i2c: i801: Don't restore config registers on runtime PM
Restoring configuration registers is only needed when we hand control
to the firmware. This is never the case with runtime power
management. The device will autosuspend whenever not used, so avoid
useless register writes by defining suspend/resume only, and not
runtime_suspend/runtime_resume.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
-rw-r--r-- | drivers/i2c/busses/i2c-i801.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index e0d59e9ff3c6..ed07f9002710 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -1731,8 +1731,7 @@ static int i801_resume(struct device *dev) } #endif -static UNIVERSAL_DEV_PM_OPS(i801_pm_ops, i801_suspend, - i801_resume, NULL); +static SIMPLE_DEV_PM_OPS(i801_pm_ops, i801_suspend, i801_resume); static struct pci_driver i801_driver = { .name = "i801_smbus", |