mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-11-01 09:13:37 +00:00 
			
		
		
		
	gpio: omap: Fix warnings if PM is disabled
Fix warnings for omap_gpio_resume and omap_gpio_suspend
defined but not used when PM is disabled as noticed when
doing make randconfig builds.
Fixes: f02a03985d ("gpio: omap: Add missing PM ops for suspend")
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
			
			
This commit is contained in:
		
							parent
							
								
									9123e3a74e
								
							
						
					
					
						commit
						d3f99f9183
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1516,7 +1516,7 @@ static int __maybe_unused omap_gpio_runtime_resume(struct device *dev)
 | 
			
		|||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int omap_gpio_suspend(struct device *dev)
 | 
			
		||||
static int __maybe_unused omap_gpio_suspend(struct device *dev)
 | 
			
		||||
{
 | 
			
		||||
	struct gpio_bank *bank = dev_get_drvdata(dev);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1528,7 +1528,7 @@ static int omap_gpio_suspend(struct device *dev)
 | 
			
		|||
	return omap_gpio_runtime_suspend(dev);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int omap_gpio_resume(struct device *dev)
 | 
			
		||||
static int __maybe_unused omap_gpio_resume(struct device *dev)
 | 
			
		||||
{
 | 
			
		||||
	struct gpio_bank *bank = dev_get_drvdata(dev);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue