linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND] pwm: brcmstb: Don't set can_sleep flag
@ 2015-11-24  6:43 Axel Lin
  2015-11-24 16:27 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2015-11-24  6:43 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>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Brian Norris <computersforpeace@gmail.com>
---
This patch was sent on http://www.spinics.net/lists/linux-pwm/msg03506.html

 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] 2+ messages in thread

end of thread, other threads:[~2015-11-24 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-24  6:43 [PATCH RESEND] pwm: brcmstb: Don't set can_sleep flag Axel Lin
2015-11-24 16:27 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).