[PATCH v2] pwm: atmel: Simplify using devm functions
Thierry Reding
thierry.reding at gmail.com
Fri Jul 28 01:15:53 PDT 2023
On Fri, 28 Jul 2023 10:11:05 +0200, Uwe Kleine-König wrote:
> For all resources used by the driver there is a devm variant to allocate
> these. This simplifies the error path in the probe callback and allows
> to drop the remove callback.
>
> While at it also use dev_err_probe() to compact returning an error.
>
> With the remove callback gone, there is no user of driver data left, so
> the call to platform_set_drvdata() can also be dropped.
>
> [...]
Applied, thanks!
[1/1] pwm: atmel: Simplify using devm functions
commit: b22bb0d6a828b4eab579056647d2f362ac116cf2
Best regards,
--
Thierry Reding <thierry.reding at gmail.com>
More information about the linux-arm-kernel
mailing list