aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-09-29 18:19:16 +0200
committerThierry Reding <[email protected]>2023-10-13 10:07:18 +0200
commitdfbf937916308641e925a23aa12dd7c38ceddd99 (patch)
tree96c00ffca65920b6fc7d268bc4ea158585dee0f3 /scripts/gcc-plugins/randomize_layout_plugin.c
parent21c0e1aaf7ef0ac3c67e4e1ab68c080adb2a186b (diff)
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/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions