]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: lpc18xx: Convert to use dev_err_probe()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 12 Jul 2022 16:15:18 +0000 (18:15 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 29 Jul 2022 11:41:18 +0000 (13:41 +0200)
commitd36e2aee431564403e61766c9a56ae9da3960e00
treeb75c231a487167c27e32aa0bc9528710a149e8e0
parentc66569e55cbc1cb34322ecf8bedee8b493d5066d
pwm: lpc18xx: Convert to use dev_err_probe()

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@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpc18xx-sct.c