Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions arch/arc/core/arc_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ void arch_sched_ipi(void)
}
}

static int arc_smp_init(const struct device *dev)
static int arc_smp_init(void)
{
ARG_UNUSED(dev);
struct arc_connect_bcr bcr;

/* necessary master core init */
Expand Down
3 changes: 1 addition & 2 deletions arch/arc/core/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,8 @@ int arch_icache_flush_and_invd_range(void *addr, size_t size)
return -ENOTSUP;
}

static int init_dcache(const struct device *unused)
static int init_dcache(void)
{
ARG_UNUSED(unused);

arch_dcache_enable();

Expand Down
3 changes: 1 addition & 2 deletions arch/arc/core/irq_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ void arch_irq_offload(irq_offload_routine_t routine, const void *parameter)
}

/* need to be executed on every core in the system */
int arc_irq_offload_init(const struct device *unused)
int arc_irq_offload_init(void)
{
ARG_UNUSED(unused);

IRQ_CONNECT(IRQ_OFFLOAD_LINE, IRQ_OFFLOAD_PRIO, arc_irq_offload_handler, NULL, 0);

Expand Down
3 changes: 1 addition & 2 deletions arch/arc/core/mpu/arc_mpu_common_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,8 @@ int arc_core_mpu_buffer_validate(void *addr, size_t size, int write)
* This function provides the default configuration mechanism for the Memory
* Protection Unit (MPU).
*/
static int arc_mpu_init(const struct device *arg)
static int arc_mpu_init(void)
{
ARG_UNUSED(arg);

uint32_t num_regions = get_num_regions();

Expand Down
3 changes: 1 addition & 2 deletions arch/arc/core/mpu/arc_mpu_v4_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,8 @@ int arc_core_mpu_buffer_validate(void *addr, size_t size, int write)
* This function provides the default configuration mechanism for the Memory
* Protection Unit (MPU).
*/
static int arc_mpu_init(const struct device *arg)
static int arc_mpu_init(void)
{
ARG_UNUSED(arg);
uint32_t num_regions;
uint32_t i;

Expand Down
2 changes: 1 addition & 1 deletion arch/arc/core/secureshield/arc_sjli.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void sjli_table_init(void)
/*
* @brief initialization of secureshield related functions.
*/
static int arc_secureshield_init(const struct device *arg)
static int arc_secureshield_init(void)
{
sjli_table_init();

Expand Down
3 changes: 1 addition & 2 deletions arch/arm/core/aarch32/cortex_m/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ BUILD_ASSERT(!(CONFIG_CORTEX_M_NULL_POINTER_EXCEPTION_PAGE_SIZE &
(CONFIG_CORTEX_M_NULL_POINTER_EXCEPTION_PAGE_SIZE - 1)),
"the size of the partition must be power of 2");

static int z_arm_debug_enable_null_pointer_detection(const struct device *arg)
static int z_arm_debug_enable_null_pointer_detection(void)
{
ARG_UNUSED(arg);

z_arm_dwt_init();
z_arm_dwt_enable_debug_monitor();
Expand Down
3 changes: 1 addition & 2 deletions arch/arm64/core/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,8 @@ void z_arm64_flush_fpu_ipi(unsigned int cpu)
}
#endif

static int arm64_smp_init(const struct device *dev)
static int arm64_smp_init(void)
{
ARG_UNUSED(dev);

/*
* SGI0 is use for sched ipi, this might be changed to use Kconfig
Expand Down
3 changes: 1 addition & 2 deletions arch/arm64/core/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ static int xen_map_shared_info(const shared_info_t *shared_page)
return HYPERVISOR_memory_op(XENMEM_add_to_physmap, &xatp);
}

static int xen_enlighten_init(const struct device *dev)
static int xen_enlighten_init(void)
{
ARG_UNUSED(dev);
int ret = 0;
shared_info_t *info = (shared_info_t *) shared_info_buf;

Expand Down
3 changes: 1 addition & 2 deletions arch/riscv/core/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ static void ipi_handler(const void *unused)
#endif
}

static int riscv_smp_init(const struct device *dev)
static int riscv_smp_init(void)
{
ARG_UNUSED(dev);

IRQ_CONNECT(RISCV_MACHINE_SOFT_IRQ, 0, ipi_handler, NULL, 0);
irq_enable(RISCV_MACHINE_SOFT_IRQ);
Expand Down
3 changes: 1 addition & 2 deletions arch/x86/core/spec_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
*/

#if defined(CONFIG_DISABLE_SSBD) || defined(CONFIG_ENABLE_EXTENDED_IBRS)
static int spec_ctrl_init(const struct device *dev)
static int spec_ctrl_init(void)
{
ARG_UNUSED(dev);

uint32_t enable_bits = 0U;
uint32_t cpuid7 = z_x86_cpuid_extended_features();
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/core/x86_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ void z_x86_dump_page_tables(pentry_t *ptables)

#if DUMP_PAGE_TABLES
__pinned_func
static int dump_kernel_tables(const struct device *unused)
static int dump_kernel_tables(void)
{
z_x86_dump_page_tables(z_x86_kernel_ptables);

Expand Down
2 changes: 1 addition & 1 deletion boards/arc/em_starterkit/pmodmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
#define PM6_LR_CSS_STAT ((1 << BIT2) << PM6_OFFSET)


static int pmod_mux_init(const struct device *dev)
static int pmod_mux_init(void)
{
volatile uint32_t *mux_regs = (uint32_t *)(PMODMUX_BASE_ADDR);

Expand Down
3 changes: 1 addition & 2 deletions boards/arc/hsdk/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
#define HSDK_CREG_GPIO_MUX_REG 0xf0001484
#define HSDK_CREG_GPIO_MUX_VAL 0x00000400

static int hsdk_creg_gpio_mux_init(const struct device *dev)
static int hsdk_creg_gpio_mux_init(void)
{
ARG_UNUSED(dev);

sys_write32(HSDK_CREG_GPIO_MUX_REG, HSDK_CREG_GPIO_MUX_VAL);

Expand Down
3 changes: 1 addition & 2 deletions boards/arc/nsim/haps_arcv3_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
#define AUX_CLN_DATA 0x641


static int haps_arcv3_init(const struct device *dev)
static int haps_arcv3_init(void)
{
ARG_UNUSED(dev);

z_arc_v2_aux_reg_write(AUX_CLN_ADDR, ARC_CLN_PER0_BASE);
z_arc_v2_aux_reg_write(AUX_CLN_DATA, 0xF00);
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/96b_wistrio/rf.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <zephyr/drivers/gpio.h>
#include <zephyr/init.h>

static int rf_init(const struct device *dev)
static int rf_init(void)
{
const struct gpio_dt_spec rf1 =
GPIO_DT_SPEC_GET(DT_NODELABEL(rf_switch), rf1_gpios);
Expand All @@ -16,7 +16,6 @@ static int rf_init(const struct device *dev)
const struct gpio_dt_spec rf3 =
GPIO_DT_SPEC_GET(DT_NODELABEL(rf_switch), rf3_gpios);

ARG_UNUSED(dev);

/* configure RFSW8001 GPIOs (110: RF1/RF2 coexistence mode) */
if (!device_is_ready(rf1.port) ||
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/arduino_nano_33_ble/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>

static int board_init(const struct device *dev)
static int board_init(void)
{
ARG_UNUSED(dev);

int res;
static const struct gpio_dt_spec pull_up =
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/arduino_portenta_h7/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>

static int board_init(const struct device *dev)
static int board_init(void)
{
ARG_UNUSED(dev);

/* Set led1 inactive since the Arduino bootloader leaves it active */
const struct gpio_dt_spec led1 = GPIO_DT_SPEC_GET(DT_ALIAS(led1), gpios);
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/arty/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ bool board_daplink_is_fitted(void)
return !NVIC_GetPendingIRQ(DT_IRQN(DAPLINK_QSPI_MUX_NODE));
}

static int board_init(const struct device *dev)
static int board_init(void)
{
ARG_UNUSED(dev);

/*
* Automatically select normal mode unless the DAPLink shield is fitted
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/beagle_bcf/board_antenna.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ const RFCC26XX_HWAttrsV2 RFCC26XX_hwAttrs = {
/**
* Antenna switch GPIO init routine.
*/
static int board_antenna_init(const struct device *dev)
static int board_antenna_init(void)
{
ARG_UNUSED(dev);

/* set all paths to low */
IOCPinTypeGpioOutput(BOARD_RF_HIGH_PA);
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/bl5340_dvk/bl5340_dvk_cpunet_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ static void remoteproc_mgr_config(void)
#endif /* !CONFIG_TRUSTED_EXECUTION_NONSECURE */
}

static int remoteproc_mgr_boot(const struct device *dev)
static int remoteproc_mgr_boot(void)
{
ARG_UNUSED(dev);

/* Secure domain may configure permissions for the Network MCU. */
remoteproc_mgr_config();
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/cc3220sf_launchxl/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@
#define I2C_CC32XX_PIN_16_I2C_SCL 0x90F /*!< PIN 16 is used for I2C_SCL */
#define I2C_CC32XX_PIN_17_I2C_SDA 0x910 /*!< PIN 17 is used for I2C_SDA */

int pinmux_initialize(const struct device *port)
int pinmux_initialize(void)
{
ARG_UNUSED(port);

#ifdef CONFIG_UART_CC32XX
/* Configure PIN_55 for UART0 UART0_TX */
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/cc3235sf_launchxl/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@
#define I2C_CC32XX_PIN_16_I2C_SCL 0x90F /*!< PIN 16 is used for I2C_SCL */
#define I2C_CC32XX_PIN_17_I2C_SDA 0x910 /*!< PIN 17 is used for I2C_SDA */

int pinmux_initialize(const struct device *port)
int pinmux_initialize(void)
{
ARG_UNUSED(port);

#ifdef CONFIG_UART_CC32XX
/* Configure PIN_55 for UART0 UART0_TX */
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efm32gg_slwstk6121a/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
#include "em_cmu.h"
#include "board.h"

static int efm32gg_slwstk6121a_init(const struct device *dev)
static int efm32gg_slwstk6121a_init(void)
{
ARG_UNUSED(dev);

const struct device *cur_dev;

Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efm32gg_stk3701a/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
#include <zephyr/sys/printk.h>
#include "em_cmu.h"

static int efm32gg_stk3701a_init(const struct device *dev)
static int efm32gg_stk3701a_init(void)
{
const struct device *cur_dev;

ARG_UNUSED(dev);

/* Enable the board controller to be able to use the serial port */
cur_dev = DEVICE_DT_GET(BC_ENABLE_GPIO_NODE);
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efm32hg_slstk3400a/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/printk.h>

static int efm32hg_slstk3400a_init(const struct device *dev)
static int efm32hg_slstk3400a_init(void)
{
const struct device *bce_dev; /* Board Controller Enable Gpio Device */

ARG_UNUSED(dev);

/* Enable the board controller to be able to use the serial port */
bce_dev = DEVICE_DT_GET(BC_ENABLE_GPIO_NODE);
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efm32pg_stk3401a/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/printk.h>

static int efm32pg_stk3401a_init(const struct device *dev)
static int efm32pg_stk3401a_init(void)
{
const struct device *bce_dev; /* Board Controller Enable Gpio Device */

ARG_UNUSED(dev);

/* Enable the board controller to be able to use the serial port */
bce_dev = DEVICE_DT_GET(BC_ENABLE_GPIO_NODE);
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efm32pg_stk3402a/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/printk.h>

static int efm32pg_stk3402a_init(const struct device *dev)
static int efm32pg_stk3402a_init(void)
{
const struct device *bce_dev; /* Board Controller Enable Gpio Device */

ARG_UNUSED(dev);

/* Enable the board controller to be able to use the serial port */
bce_dev = DEVICE_DT_GET(BC_ENABLE_GPIO_NODE);
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efm32wg_stk3800/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/printk.h>

static int efm32wg_stk3800_init(const struct device *dev)
static int efm32wg_stk3800_init(void)
{
const struct device *bce_dev; /* Board Controller Enable Gpio Device */

ARG_UNUSED(dev);

/* Enable the board controller to be able to use the serial port */
bce_dev = DEVICE_DT_GET(BC_ENABLE_GPIO_NODE);
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efr32_radio/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
#define VCOM_ENABLE_GPIO_PIN 5
#endif /* CONFIG_BOARD_EFR32_RADIO_BRD4180A */

static int efr32_radio_init(const struct device *dev)
static int efr32_radio_init(void)
{
const struct device *vce_dev; /* Virtual COM Port Enable GPIO Device */

ARG_UNUSED(dev);

/* Enable the board controller to be able to use the serial port */
vce_dev = DEVICE_DT_GET(VCOM_ENABLE_GPIO_NODE);
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efr32bg_sltb010a/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LOG_MODULE_REGISTER(efr32bg_sltb010a, CONFIG_BOARD_EFR32BG22_LOG_LEVEL);

static int efr32bg_sltb010a_init_clocks(void);

static int efr32bg_sltb010a_init(const struct device *dev)
static int efr32bg_sltb010a_init(void)
{
int ret;

Expand All @@ -26,7 +26,6 @@ static int efr32bg_sltb010a_init(const struct device *dev)
static struct gpio_dt_spec wake_up_gpio_dev =
GPIO_DT_SPEC_GET(DT_NODELABEL(wake_up_trigger), gpios);

ARG_UNUSED(dev);

if (!device_is_ready(wake_up_gpio_dev.port)) {
LOG_ERR("Wake-up GPIO device was not found!\n");
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efr32mg_sltb004a/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ static int enable_supply(const struct supply_cfg *cfg)
return rv;
}

static int efr32mg_sltb004a_init(const struct device *dev)
static int efr32mg_sltb004a_init(void)
{
struct supply_cfg cfg;
int rc = 0;

ARG_UNUSED(dev);
(void)cfg;

#define CCS811 DT_NODELABEL(ccs811)
Expand Down
3 changes: 1 addition & 2 deletions boards/arm/efr32xg24_dk2601b/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LOG_MODULE_REGISTER(efr32xg24_dk2601b, CONFIG_BOARD_EFR32MG24_LOG_LEVEL);

static int efr32xg24_dk2601b_init_clocks(void);

static int efr32xg24_dk2601b_init(const struct device *dev)
static int efr32xg24_dk2601b_init(void)
{
int ret;

Expand All @@ -27,7 +27,6 @@ static int efr32xg24_dk2601b_init(const struct device *dev)
static struct gpio_dt_spec wake_up_gpio_dev =
GPIO_DT_SPEC_GET(DT_NODELABEL(wake_up_trigger), gpios);

ARG_UNUSED(dev);

if (!device_is_ready(wake_up_gpio_dev.port)) {
LOG_ERR("Wake-up GPIO device was not found!\n");
Expand Down
Loading