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

From
Thierry Reding <hidden>
Date
2023-07-28 08:16:14
Also in
linux-pwm
Reply to
Uwe Kleine-König, 2023-07-28
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 [off-list ref]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (2 messages) 2 messages, 2 authors, last reply 2023-07-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help