All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Changes for pwmchip_remove()
@ 2021-03-24 15:20 Uwe Kleine-König
  2021-03-24 15:20 ` [PATCH 1/2] pwm: Drop unused error path from pwmchip_remove() Uwe Kleine-König
  2021-03-24 15:20 ` [PATCH 2/2] pwm: imx27: Don't check the return code of pwmchip_remove() Uwe Kleine-König
  0 siblings, 2 replies; 8+ messages in thread
From: Uwe Kleine-König @ 2021-03-24 15:20 UTC (permalink / raw)
  To: Thierry Reding, Lee Jones
  Cc: Shawn Guo, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, linux-pwm

pwmchip_remove currently can (theoretically) return an error code and
most drivers check for that and pass an error to the upper layer just to
be ignored there. Before device links were used this resulted in
half-registered drivers that failed to free all allocated resources.
Today it just makes these remove functions more complicated than
necessary.

This series simplifies pwmchip_remove() and prepares a first driver to
eventually make pwmchip_remove() return void.

Best regards
Uwe

Uwe Kleine-König (2):
  pwm: Drop unused error path from pwmchip_remove()
  pwm: imx27: Don't check the return code of pwmchip_remove()

 drivers/pwm/core.c      | 16 ++--------------
 drivers/pwm/pwm-imx27.c |  4 +++-
 2 files changed, 5 insertions(+), 15 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-05 13:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 15:20 [PATCH 0/2] Changes for pwmchip_remove() Uwe Kleine-König
2021-03-24 15:20 ` [PATCH 1/2] pwm: Drop unused error path from pwmchip_remove() Uwe Kleine-König
2021-04-09 11:57   ` Thierry Reding
2021-04-10 21:56     ` Uwe Kleine-König
2021-03-24 15:20 ` [PATCH 2/2] pwm: imx27: Don't check the return code of pwmchip_remove() Uwe Kleine-König
2021-04-09 12:00   ` Thierry Reding
2021-05-25 19:59     ` Uwe Kleine-König
2021-07-05 13:15       ` Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.