pwm: imx: set can_sleep flag for imx_pwm
authorShawn Guo <shawn.guo@freescale.com>
Fri, 23 May 2014 08:41:28 +0000 (16:41 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 7 Aug 2014 11:22:44 +0000 (13:22 +0200)
commit31c4fa3442570d001f58303dea36d81693bc199c
tree4323d917455acb714a921c9ba9a2e9d1ee922f63
parent65accd87381ed96bf8893124b149bae08edd2740
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>
drivers/pwm/pwm-imx.c