All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] pwm: tiehrpwm: don't build PM related functions when not needed
@ 2014-04-02 11:56 Wolfram Sang
  2014-04-02 11:56 ` [PATCH 2/2] pwm: tiehrpwm: inline accessor functions Wolfram Sang
  2014-05-21 10:01 ` [PATCH 1/2] pwm: tiehrpwm: don't build PM related functions when not needed Thierry Reding
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfram Sang @ 2014-04-02 11:56 UTC (permalink / raw)
  To: linux-pwm; +Cc: Wolfram Sang, Thierry Reding

From: Wolfram Sang <wsa@sang-engineering.com>

Fixes following warnings on AM335X with no PM_SLEEP

drivers/pwm/pwm-tiehrpwm.c:534:13: warning: 'ehrpwm_pwm_save_context' defined but not used [-Wunused-function]
drivers/pwm/pwm-tiehrpwm.c:548:13: warning: 'ehrpwm_pwm_restore_context' defined but not used [-Wunused-function]

Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
---
 drivers/pwm/pwm-tiehrpwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c
index aee4471424d1..b2544296430a 100644
--- a/drivers/pwm/pwm-tiehrpwm.c
+++ b/drivers/pwm/pwm-tiehrpwm.c
@@ -531,6 +531,7 @@ static int ehrpwm_pwm_remove(struct platform_device *pdev)
 	return pwmchip_remove(&pc->chip);
 }
 
+#ifdef CONFIG_PM_SLEEP
 static void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc)
 {
 	pm_runtime_get_sync(pc->chip.dev);
@@ -557,7 +558,6 @@ static void ehrpwm_pwm_restore_context(struct ehrpwm_pwm_chip *pc)
 	ehrpwm_write(pc->mmio_base, TBCTL, pc->ctx.tbctl);
 }
 
-#ifdef CONFIG_PM_SLEEP
 static int ehrpwm_pwm_suspend(struct device *dev)
 {
 	struct ehrpwm_pwm_chip *pc = dev_get_drvdata(dev);
-- 
1.9.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-21 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-02 11:56 [PATCH 1/2] pwm: tiehrpwm: don't build PM related functions when not needed Wolfram Sang
2014-04-02 11:56 ` [PATCH 2/2] pwm: tiehrpwm: inline accessor functions Wolfram Sang
2014-05-21 10:01 ` [PATCH 1/2] pwm: tiehrpwm: don't build PM related functions when not needed Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.