Skip to content

Commit f8b03e5

Browse files
seanyoungUwe Kleine-König
authored andcommitted
bus: ts-nbus: Use pwm_apply_might_sleep()
pwm_apply_state() is deprecated since commit c748a6d ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()"). Signed-off-by: Sean Young <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent a96d365 commit f8b03e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bus/ts-nbus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static int ts_nbus_probe(struct platform_device *pdev)
294294
state.duty_cycle = state.period;
295295
state.enabled = true;
296296

297-
ret = pwm_apply_state(pwm, &state);
297+
ret = pwm_apply_might_sleep(pwm, &state);
298298
if (ret < 0)
299299
return dev_err_probe(dev, ret, "failed to configure PWM\n");
300300

0 commit comments

Comments
 (0)