aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-07-18 17:53:10 +0000
committerThierry Reding <[email protected]>2023-07-28 07:39:02 +0000
commit387c74e5f91d8e6f0c6e49fddd8b0e53118e5def (patch)
treeb00826900936360c5ca79e1d6bff68ca8353a4bd /drivers/pwm/pwm-stm32.c
parentpwm: ntxec: Drop a write-only variable from driver data (diff)
downloadkernel-387c74e5f91d8e6f0c6e49fddd8b0e53118e5def.tar.gz
kernel-387c74e5f91d8e6f0c6e49fddd8b0e53118e5def.zip
pwm: ntxec: Use device_set_of_node_from_dev()
Compared to overwriting pdev->dev.of_node directly, this takes care of reference counting. It also prevents that the parent device matches this driver. See commit 9b22c17a3cc5 ("of: Check 'of_node_reused' flag on of_match_device()") for further details. Suggested-by: Rob Herring <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions