diff options
| author | Samuel Holland <[email protected]> | 2024-11-04 20:10:09 -0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-11-28 11:46:36 +0530 |
| commit | 678f5909a3fe54d528276f9afce5dd3148e42cbf (patch) | |
| tree | bd3377085a71ed54c2e80a3a0a98a3cff24185cc /platform/template | |
| parent | 2dd6eaf680556e763a85b0b4ae180391e2671854 (diff) | |
platform: Drop irqchip warm init and exit hooks
Now that driver lifecycle is managed from within the SBI irqchip core,
platforms need only to initialize the driver once during cold init.
Remove the remaining platform hooks that are no longer used.
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/template')
| -rw-r--r-- | platform/template/platform.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c index c7af31ab..bc351bc9 100644 --- a/platform/template/platform.c +++ b/platform/template/platform.c @@ -87,20 +87,12 @@ static int platform_final_init(bool cold_boot) } /* - * Initialize the platform interrupt controller for current HART. + * Initialize the platform interrupt controller during cold boot. */ -static int platform_irqchip_init(bool cold_boot) +static int platform_irqchip_init(void) { - int ret; - /* Example if the generic PLIC driver is used */ - if (cold_boot) { - ret = plic_cold_irqchip_init(&plic); - if (ret) - return ret; - } - - return 0; + return plic_cold_irqchip_init(&plic); } /* |
