]> Git Repo - linux.git/commit
pwm: sprd: Simplify using devm_pwmchip_add() and dev_err_probe()
authorUwe Kleine-König <[email protected]>
Fri, 29 Sep 2023 16:19:15 +0000 (18:19 +0200)
committerThierry Reding <[email protected]>
Fri, 13 Oct 2023 08:07:18 +0000 (10:07 +0200)
commit21c0e1aaf7ef0ac3c67e4e1ab68c080adb2a186b
tree34bda0b88328b47df8866565a2130116bdd6e32f
parentd8a2f6f26a079f3d0a34b6146e332797218cb5de
pwm: sprd: Simplify using devm_pwmchip_add() and dev_err_probe()

Using devm_pwmchip_add() allows to drop pwmchip_remove() from the remove
function which makes this function empty. Then there is no user of
drvdata left and platform_set_drvdata() can be dropped, too.

Further simplify and improve error returning using dev_err_probe().

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
drivers/pwm/pwm-sprd.c
This page took 0.051673 seconds and 4 git commands to generate.