summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-ws16c48.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-09-29 19:19:16 +0300
committerThierry Reding <thierry.reding@gmail.com>2023-10-13 11:07:18 +0300
commitdfbf937916308641e925a23aa12dd7c38ceddd99 (patch)
tree96c00ffca65920b6fc7d268bc4ea158585dee0f3 /drivers/gpio/gpio-ws16c48.c
parent21c0e1aaf7ef0ac3c67e4e1ab68c080adb2a186b (diff)
downloadlinux-dfbf937916308641e925a23aa12dd7c38ceddd99.tar.xz
pwm: vt8500: 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 vt8500_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-10-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/gpio/gpio-ws16c48.c')
0 files changed, 0 insertions, 0 deletions