forked from mirrors/linux
		
	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>
This commit is contained in:
		
							parent
							
								
									e8f39e9fc0
								
							
						
					
					
						commit
						a9c8088c79
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -1731,8 +1731,7 @@ static int i801_resume(struct device *dev) | ||||||
| } | } | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| static UNIVERSAL_DEV_PM_OPS(i801_pm_ops, i801_suspend, | static SIMPLE_DEV_PM_OPS(i801_pm_ops, i801_suspend, i801_resume); | ||||||
| 			    i801_resume, NULL); |  | ||||||
| 
 | 
 | ||||||
| static struct pci_driver i801_driver = { | static struct pci_driver i801_driver = { | ||||||
| 	.name		= "i801_smbus", | 	.name		= "i801_smbus", | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Jean Delvare
						Jean Delvare