summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-sprd.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-09-29 18:19:13 +0200
committerThierry Reding <thierry.reding@gmail.com>2023-10-13 10:07:18 +0200
commit4f9ab6902b8e74452426686a453e01787846d028 (patch)
tree3c415dcc4a72e81d66d87f496d3057e3dfff6ca0 /drivers/pwm/pwm-sprd.c
parent05c9b6f8e53446c6f7e9ff52e181b4f30459f452 (diff)
downloadlwn-4f9ab6902b8e74452426686a453e01787846d028.tar.gz
lwn-4f9ab6902b8e74452426686a453e01787846d028.zip
pwm: spear: Simplify using devm functions
With devm_clk_get_prepared() the call to clk_unprepare() can be dropped from the error path and the remove callback. With devm_pwmchip_add() pwmchip_remove() can be dropped. Then the remove callback is empty and can go away, too. With spear_pwm_remove() the last user of platform_get_drvdata() is gone and so platform_set_drvdata() can be dropped, too. Also use dev_err_probe() for simplified (and improved) error reporting. Link: https://lore.kernel.org/r/20230929161918.2410424-7-u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-sprd.c')
0 files changed, 0 insertions, 0 deletions