The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/5] clocksource: Convert to platform remove callback returning void
@ 2023-03-13  7:54 Uwe Kleine-König
  2023-03-13  7:54 ` [PATCH 1/5] clocksource: sh_mtu2: Mark driver as non-removable Uwe Kleine-König
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Uwe Kleine-König @ 2023-03-13  7:54 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Maxime Coquelin,
	Alexandre Torgue, Thierry Reding, Jonathan Hunter
  Cc: linux-kernel, linux-stm32, linux-arm-kernel, linux-tegra, kernel

Hello,

this patch series adapts the platform drivers below drivers/clk
to use the .remove_new() callback. Compared to the traditional .remove()
callback .remove_new() returns no value. This is a good thing because
the driver core doesn't (and cannot) cope for errors during remove. The
only effect of a non-zero return value in .remove() is that the driver
core emits a warning. The device is removed anyhow and an early return
from .remove() usually yields a resource leak.

Most clocksource drivers are not supposed to be removed. Two drivers are
adapted here to actually prevent removal. One driver is fixed not to
return an error code in .remove() and then the two remaining drivers
with a remove callback are trivially converted to .remove_new().

Best regards
Uwe

Uwe Kleine-König (5):
  clocksource: sh_mtu2: Mark driver as non-removable
  clocksource: timer-stm32-lp: Mark driver as non-removable
  clocksource: timer-ti-dm: Improve error message in .remove
  clocksource: timer-tegra186: Convert to platform remove callback
    returning void
  clocksource: timer-ti-dm: Convert to platform remove callback
    returning void

 drivers/clocksource/sh_mtu2.c        | 7 +------
 drivers/clocksource/timer-stm32-lp.c | 7 +------
 drivers/clocksource/timer-tegra186.c | 6 ++----
 drivers/clocksource/timer-ti-dm.c    | 7 ++++---
 4 files changed, 8 insertions(+), 19 deletions(-)


base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
-- 
2.39.1


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

end of thread, other threads:[~2023-04-26  9:14 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-13  7:54 [PATCH 0/5] clocksource: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-13  7:54 ` [PATCH 1/5] clocksource: sh_mtu2: Mark driver as non-removable Uwe Kleine-König
2023-04-26  9:12   ` [tip: timers/core] clocksource/drivers/sh_mtu2: " tip-bot2 for Uwe Kleine-König
2023-03-13  7:54 ` [PATCH 2/5] clocksource: timer-stm32-lp: " Uwe Kleine-König
2023-03-13  9:43   ` Uwe Kleine-König
2023-03-13 13:10   ` kernel test robot
2023-04-26  9:12   ` [tip: timers/core] clocksource/drivers/timer-stm32-lp: " tip-bot2 for Uwe Kleine-König
2023-03-13  7:54 ` [PATCH 3/5] clocksource: timer-ti-dm: Improve error message in .remove Uwe Kleine-König
2023-04-26  9:12   ` [tip: timers/core] clocksource/drivers/timer-ti-dm: " tip-bot2 for Uwe Kleine-König
2023-03-13  7:54 ` [PATCH 4/5] clocksource: timer-tegra186: Convert to platform remove callback returning void Uwe Kleine-König
2023-04-26  9:12   ` [tip: timers/core] clocksource/drivers/timer-tegra186: " tip-bot2 for Uwe Kleine-König
2023-03-13  7:54 ` [PATCH 5/5] clocksource: timer-ti-dm: " Uwe Kleine-König
2023-04-26  9:12   ` [tip: timers/core] clocksource/drivers/timer-ti-dm: " tip-bot2 for Uwe Kleine-König
2023-04-06 13:54 ` [PATCH 0/5] clocksource: " Daniel Lezcano
2023-04-06 14:07   ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox