[PATCH 1/2] pwm: lpc18xx: Convert to use dev_err_probe()

Thierry Reding thierry.reding at gmail.com
Thu Jul 28 10:22:52 PDT 2022


On Tue, Jul 12, 2022 at 06:15:18PM +0200, Uwe Kleine-König wrote:
> This has various upsides:
>  - It emits the symbolic name of the error code
>  - It is silent in the EPROBE_DEFER case and properly sets the defer reason
>  - It reduces the number of code lines slightly
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
>  drivers/pwm/pwm-lpc18xx-sct.c | 20 +++++++++-----------
>  1 file changed, 9 insertions(+), 11 deletions(-)

Both patches applied, thanks.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220728/453a748c/attachment.sig>


More information about the linux-arm-kernel mailing list