Commit f8b03e5c authored by Sean Young's avatar Sean Young Committed by Uwe Kleine-König

bus: ts-nbus: Use pwm_apply_might_sleep()

pwm_apply_state() is deprecated since commit c748a6d7 ("pwm: Rename
pwm_apply_state() to pwm_apply_might_sleep()").
Signed-off-by: default avatarSean Young <sean@mess.org>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240614090829.560605-1-sean@mess.orgSigned-off-by: default avatarUwe Kleine-König <ukleinek@kernel.org>
parent a96d3659
......@@ -294,7 +294,7 @@ static int ts_nbus_probe(struct platform_device *pdev)
state.duty_cycle = state.period;
state.enabled = true;
ret = pwm_apply_state(pwm, &state);
ret = pwm_apply_might_sleep(pwm, &state);
if (ret < 0)
return dev_err_probe(dev, ret, "failed to configure PWM\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment