device: remove redundant init functions

Remove all init functions that do nothing, and provide a `NULL` to
*DEVICE*DEFINE* macros.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2023-04-18 12:25:15 +02:00 committed by Carles Cufí
commit 1eb683a514
87 changed files with 149 additions and 735 deletions

View file

@ -171,11 +171,6 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate(
return 0;
}
static int mcux_lpc_syscon_clock_control_init(const struct device *dev)
{
return 0;
}
static const struct clock_control_driver_api mcux_lpc_syscon_api = {
.on = mcux_lpc_syscon_clock_control_on,
.off = mcux_lpc_syscon_clock_control_off,
@ -185,7 +180,7 @@ static const struct clock_control_driver_api mcux_lpc_syscon_api = {
#define LPC_CLOCK_INIT(n) \
\
DEVICE_DT_INST_DEFINE(n, \
&mcux_lpc_syscon_clock_control_init, \
NULL, \
NULL, \
NULL, NULL, \
PRE_KERNEL_1, CONFIG_CLOCK_CONTROL_INIT_PRIORITY, \