All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwm: brcmstb: Don't set can_sleep flag
@ 2015-11-03 10:08 Axel Lin
  2015-11-04  0:18 ` Florian Fainelli
  2015-11-04  0:31 ` Brian Norris
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2015-11-03 10:08 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Brian Norris, Gregory Fong, Florian Fainelli, linux-pwm

The .can_sleep flag is used for some PWM controllers that can't be used
in atomic context. Not such case for this driver, so don't set the
can_sleep flag.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/pwm/pwm-brcmstb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pwm/pwm-brcmstb.c b/drivers/pwm/pwm-brcmstb.c
index 423ce08..f58039b 100644
--- a/drivers/pwm/pwm-brcmstb.c
+++ b/drivers/pwm/pwm-brcmstb.c
@@ -270,7 +270,6 @@ static int brcmstb_pwm_probe(struct platform_device *pdev)
 	p->chip.ops = &brcmstb_pwm_ops;
 	p->chip.base = -1;
 	p->chip.npwm = 2;
-	p->chip.can_sleep = true;
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	p->base = devm_ioremap_resource(&pdev->dev, res);
-- 
2.1.4

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

end of thread, other threads:[~2015-11-04  1:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03 10:08 [PATCH] pwm: brcmstb: Don't set can_sleep flag Axel Lin
2015-11-04  0:18 ` Florian Fainelli
2015-11-04  0:31 ` Brian Norris
2015-11-04  0:49   ` Florian Fainelli
2015-11-04  1:08     ` Brian Norris

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.