i2c: i801: Convert to struct dev_pm_ops for suspend/resume
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 10 Mar 2016 12:12:21 +0000 (14:12 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 12 Apr 2016 21:18:53 +0000 (23:18 +0200)
commit2ee73c484dc4b8831b745a5feed56382b8741a72
treea99b909780474c2f8e419d6be770da01a3ef0485
parent04f59143b571161d25315dd52d7a2ecc022cb71a
i2c: i801: Convert to struct dev_pm_ops for suspend/resume

Stop using legacy PCI PM support and convert to standard dev_pm_ops.
This provides more straightforward path to add runtime PM.

While at it remove explicit PCI power state control and configuration space
save/restore as the PCI core does it.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c