aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pwm/pwm-pxa.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-05-03 15:09:56 +0100
committerMark Brown <broonie@kernel.org>2016-05-03 15:09:56 +0100
commitbc0868c62bb13834b20a864f684cced1f84a2412 (patch)
tree2c382dcd24ac95f4dbf53d238d3161d6171d8a4b /drivers/pwm/pwm-pxa.c
parentregulator: pwm: Try to avoid voltage error in duty cycle calculation (diff)
parentregulator: pwm: Use pwm_get_args() where appropriate (diff)
downloadwireguard-linux-bc0868c62bb13834b20a864f684cced1f84a2412.tar.xz
wireguard-linux-bc0868c62bb13834b20a864f684cced1f84a2412.zip
Merge branch 'for-4.7/pwm-regulator' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm into regulator-pwm
Diffstat (limited to '')
-rw-r--r--drivers/pwm/pwm-pxa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c
index cb2f7024cf68..58b709f29130 100644
--- a/drivers/pwm/pwm-pxa.c
+++ b/drivers/pwm/pwm-pxa.c
@@ -160,7 +160,7 @@ pxa_pwm_of_xlate(struct pwm_chip *pc, const struct of_phandle_args *args)
if (IS_ERR(pwm))
return pwm;
- pwm_set_period(pwm, args->args[0]);
+ pwm->args.period = args->args[0];
return pwm;
}