From 5bb18ac719787ea455001414bd8810617b52328e Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Mon, 3 Dec 2018 11:02:32 -0600 Subject: [PATCH] kernel: update documentation referencing old init levels A couple references to the old PRIMARY and SECONDARY levels were left in place when everything moved to the new levels. Signed-off-by: Peter A. Bigot --- doc/devices/drivers/drivers.rst | 4 ++-- include/device.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/devices/drivers/drivers.rst b/doc/devices/drivers/drivers.rst index b0c71c056bb..c08047d4e19 100644 --- a/doc/devices/drivers/drivers.rst +++ b/doc/devices/drivers/drivers.rst @@ -248,7 +248,7 @@ Then when the particular instance is declared: static struct my_driver_data_0; DEVICE_AND_API_INIT(my_driver_0, MY_DRIVER_0_NAME, my_driver_init, - &my_driver_data_0, &my_driver_config_0, SECONDARY, + &my_driver_data_0, &my_driver_config_0, POST_KERNEL, MY_DRIVER_0_PRIORITY, &my_driver_api_funcs); #endif /* CONFIG_MY_DRIVER_0 */ @@ -274,7 +274,7 @@ executed. Any driver will specify one of five initialization levels: ``PRE_KERNEL_2`` Used for devices that rely on the initialization of devices initialized - as part of the PRIMARY level. These devices cannot use any kernel + as part of the ``PRE_KERNEL_1`` level. These devices cannot use any kernel services during configuration, since the kernel services are not yet available. Init functions at this level run on the interrupt stack. diff --git a/include/device.h b/include/device.h index cbb20dba63d..eca994a9717 100644 --- a/include/device.h +++ b/include/device.h @@ -61,7 +61,7 @@ extern "C" { * yet available. * \n * \li PRE_KERNEL_2: Used for devices that rely on the initialization of devices - * initialized as part of the PRIMARY level. These devices cannot use any + * initialized as part of the PRE_KERNEL_1 level. These devices cannot use any * kernel services during configuration, since they are not yet available. * \n * \li POST_KERNEL: Used for devices that require kernel services during