# Re: \[PATCH v2\] pwm: atmel: Simplify using devm functions

- From: Thierry Reding \<hidden\>
- Date: 2023-07-28 08:16:14 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2023/07/8837293
- Thread: https://ratatoskr.run/linux-arm-kernel/2023/07/8837292/t.md

```text

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 [ref]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
