diff options
| author | Uwe Kleine-König <[email protected]> | 2023-09-29 16:19:18 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2023-10-13 08:07:18 +0000 |
| commit | 896c450960f5b11f81eaa5822db0801b03be3e68 (patch) | |
| tree | 9c2c27abab7fbe536e7c1205f6a3b538746ca4ef /drivers/pwm/pwm-pxa.c | |
| parent | pwm: samsung: Consistently use the same name for driver data (diff) | |
| download | kernel-896c450960f5b11f81eaa5822db0801b03be3e68.tar.gz kernel-896c450960f5b11f81eaa5822db0801b03be3e68.zip | |
pwm: cros-ec: 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]>
Diffstat (limited to 'drivers/pwm/pwm-pxa.c')
0 files changed, 0 insertions, 0 deletions
