[PATCH] pwm: xilinx: Simplify using devm_ functions
Uwe Kleine-König
u.kleine-koenig at baylibre.com
Fri Jul 5 03:25:21 PDT 2024
Hello,
On Fri, Jun 28, 2024 at 08:35:23AM +0200, Uwe Kleine-König wrote:
> There are devm variants for clk_prepare_enable() and pwmchip_add(); and
> clk_prepare_enable() can be done together with devm_clk_get(). This
> allows to simplify the error paths in .probe() and drop .remove()
> completely.
>
> With the remove callback gone, the last user of platform_get_drvdata()
> is gone and so the call to platform_set_drvdata() can be dropped, too.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>
Applied to pwm/for-next with Sean's R-b.
Best regards
Uwe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240705/2de77d01/attachment.sig>
More information about the linux-arm-kernel
mailing list