Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/fdt/fdt_slicer.c
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | fdt_slicer_cleanup(void) | ||||
flash_register_slicer(NULL, FLASH_SLICES_TYPE_SPI, true); | flash_register_slicer(NULL, FLASH_SLICES_TYPE_SPI, true); | ||||
} | } | ||||
/* | /* | ||||
* Must be initialized after GEOM classes (SI_SUB_DRIVERS/SI_ORDER_SECOND), | * Must be initialized after GEOM classes (SI_SUB_DRIVERS/SI_ORDER_SECOND), | ||||
* i. e. after g_init() is called, due to the use of the GEOM topology_lock | * i. e. after g_init() is called, due to the use of the GEOM topology_lock | ||||
* in flash_register_slicer(). However, must be before SI_SUB_CONFIGURE. | * in flash_register_slicer(). However, must be before SI_SUB_CONFIGURE. | ||||
*/ | */ | ||||
SYSINIT(fdt_slicer, SI_SUB_DRIVERS, SI_ORDER_THIRD, fdt_slicer_init, NULL); | SYSINIT(fdt_slicer, SI_SUB_DRIVERS, SI_ORDER_THIRD, fdt_slicer_init); | ||||
SYSUNINIT(fdt_slicer, SI_SUB_DRIVERS, SI_ORDER_THIRD, fdt_slicer_cleanup, NULL); | SYSUNINIT(fdt_slicer, SI_SUB_DRIVERS, SI_ORDER_THIRD, fdt_slicer_cleanup); | ||||
static int | static int | ||||
mod_handler(module_t mod, int type, void *data) | mod_handler(module_t mod, int type, void *data) | ||||
{ | { | ||||
/* | /* | ||||
* Nothing to do here: the SYSINIT/SYSUNINIT defined above run | * Nothing to do here: the SYSINIT/SYSUNINIT defined above run | ||||
* automatically at module load/unload time. | * automatically at module load/unload time. | ||||
Show All 11 Lines |