diff options
| author | Jerome Forissier <[email protected]> | 2025-04-04 15:50:37 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-04-14 08:59:39 -0600 |
| commit | bbee3d41b33f5b8c88ae3707dc8af105acafdd55 (patch) | |
| tree | 95ed80e2804b5cdfb4930980484e5a6152f68c66 /include | |
| parent | 6c171f7a184cc2815b736c48aa6ac02367bbb67f (diff) | |
initcall: remove initcall_run_list()
Now that all initcalls have been converted to static calls, remove
initcall_run_list().
Signed-off-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/initcall.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/initcall.h b/include/initcall.h index 8e22526dd9e..220a55ad84d 100644 --- a/include/initcall.h +++ b/include/initcall.h @@ -12,30 +12,6 @@ _Static_assert(EVT_COUNT < 256, "Can only support 256 event types with 8 bits"); -/** - * init_fnc_t - Init function - * - * Return: 0 if OK -ve on error - */ -typedef int (*init_fnc_t)(void); - -/* Top bit indicates that the initcall is an event */ -#define INITCALL_IS_EVENT GENMASK(BITS_PER_LONG - 1, 8) -#define INITCALL_EVENT_TYPE GENMASK(7, 0) - -#define INITCALL_EVENT(_type) (void *)((_type) | INITCALL_IS_EVENT) - -/** - * initcall_run_list() - Run through a list of function calls - * - * This calls functions one after the other, stopping at the first error, or - * when NULL is obtained. - * - * @init_sequence: NULL-terminated init sequence to run - * Return: 0 if OK, or -ve error code from the first failure - */ -int initcall_run_list(const init_fnc_t init_sequence[]); - #define INITCALL(_call) \ do { \ if (_call()) { \ |
