diff options
author | Shawn Guo <shawn.guo@freescale.com> | 2014-05-23 16:41:28 +0800 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-08-07 13:22:44 +0200 |
commit | 31c4fa3442570d001f58303dea36d81693bc199c (patch) | |
tree | 4323d917455acb714a921c9ba9a2e9d1ee922f63 | |
parent | 65accd87381ed96bf8893124b149bae08edd2740 (diff) | |
download | op-kernel-dev-31c4fa3442570d001f58303dea36d81693bc199c.zip op-kernel-dev-31c4fa3442570d001f58303dea36d81693bc199c.tar.gz |
pwm: imx: set can_sleep flag for imx_pwm
The .config() hook imx_pwm_config() calls clk APIs like clk_prepare()
and clk_get_rate(), which might sleep, so we need to set can_sleep flag
on pwm_chip.
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/pwm-imx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index d797c7b..5449d91 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c @@ -262,6 +262,7 @@ static int imx_pwm_probe(struct platform_device *pdev) imx->chip.dev = &pdev->dev; imx->chip.base = -1; imx->chip.npwm = 1; + imx->chip.can_sleep = true; r = platform_get_resource(pdev, IORESOURCE_MEM, 0); imx->mmio_base = devm_ioremap_resource(&pdev->dev, r); |