Re: [PATCH] pwm: twl: Simplify using devm_pwmchip_add()
From: Uwe Kleine-König
Date: Tue Sep 07 2021 - 09:37:48 EST
On Tue, Sep 07, 2021 at 07:15:18PM +0800, zhaoxiao wrote:
> With devm_pwmchip_add() we can drop pwmchip_remove() from the device
> remove callback. The latter can then go away, too and as this is the
> only user of platform_get_drvdata(), the respective call to
> platform_set_drvdata() can go, too.
>
> Signed-off-by: zhaoxiao <long870912@xxxxxxxxx>
A similar patch is already in next as c9bb1c9e5460f6e84e95b65fe4c5bb09d5dff10a
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Attachment:
signature.asc
Description: PGP signature