summaryrefslogtreecommitdiff
path: root/drivers/bus
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2024-06-14 12:08:29 +0300
committerUwe Kleine-König <ukleinek@kernel.org>2024-07-10 18:52:47 +0300
commitf8b03e5c728ff6cf76f9db23dbfaf75b7eeb0a12 (patch)
treeced7cda13835bba77f0d3cd3655089dac63fe053 /drivers/bus
parenta96d3659c9437673dbef5c05cba31a3c0b5a0a7b (diff)
downloadlinux-f8b03e5c728ff6cf76f9db23dbfaf75b7eeb0a12.tar.xz
bus: ts-nbus: Use pwm_apply_might_sleep()
pwm_apply_state() is deprecated since commit c748a6d77c06a ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()"). Signed-off-by: Sean Young <sean@mess.org> Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://lore.kernel.org/r/20240614090829.560605-1-sean@mess.org Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/ts-nbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/ts-nbus.c b/drivers/bus/ts-nbus.c
index baf22a82c47a..b8af44c5cdbd 100644
--- a/drivers/bus/ts-nbus.c
+++ b/drivers/bus/ts-nbus.c
@@ -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");