linux/drivers/counter
Waqar Hameed 51548c36b3 counter: ti-ecap-capture: Use devm_pm_runtime_enable()
There is no need to register a manual `devm` action for
`pm_runtime_disable()` when `devm_pm_runtime_enable()` exists. It does
the same thing (but also calls `pm_runtime_dont_use_autosuspend()`,
which should be fine here).

Moreover, when `devm_add_action_or_reset()` fails, it is due to a failed
memory allocation and will thus return `-ENOMEM`. `dev_err_probe()`
doesn't do anything when error is `-ENOMEM`. Therefore, the call to
`dev_err_probe()` is useless. Note that `devm_pm_runtime_enable()` has a
tail call to `devm_add_action_or_reset()` and thus returns that value.
Therefore, replace `dev_err_probe()` with the returning value.

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
Acked-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/pnda54bjmij.a.out@axis.com
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
2025-08-24 17:02:03 +09:00
..
104-quad-8.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
counter-chrdev.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
counter-chrdev.h counter: Add character device interface 2021-10-17 10:53:52 +01:00
counter-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
counter-sysfs.c counter: i8254: Introduce the Intel 8254 interface library module 2023-06-08 10:11:17 -04:00
counter-sysfs.h counter: Internalize sysfs interface code 2021-10-17 10:52:58 +01:00
ftm-quaddec.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
i8254.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel-qep.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
interrupt-cnt.c Counter updates for 6.16 2025-05-21 14:07:53 +02:00
Kconfig counter: ti-eqep: Allow eQEP driver to be built for K3 devices 2024-07-01 19:05:42 +09:00
Makefile counter: i8254: Introduce the Intel 8254 interface library module 2023-06-08 10:11:17 -04:00
microchip-tcb-capture.c counter: microchip-tcb-capture: Add watch validation support 2025-05-22 18:40:19 +09:00
rz-mtu3-cnt.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
stm32-lptimer-cnt.c counter: stm32-lptimer-cnt: fix error handling when enabling 2025-03-04 19:23:02 +09:00
stm32-timer-cnt.c counter: stm32-timer-cnt: add support for stm32mp25 2025-05-15 09:20:12 +09:00
ti-ecap-capture.c counter: ti-ecap-capture: Use devm_pm_runtime_enable() 2025-08-24 17:02:03 +09:00
ti-eqep.c counter: ti-eqep: add direction support 2025-02-05 13:22:04 +09:00