lib: sbi_platform: Remove the vendor_ext_check hook

Now that the generic platform only sets .vendor_ext_provider if the
function is really implemented, there is no need for a separate hook to
check if a vendor extension is implemented.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20250325234342.711447-11-samuel.holland@sifive.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Samuel Holland
2025-03-25 16:43:33 -07:00
committed by Anup Patel
parent 0dd8a26f1f
commit 2b09a98701
2 changed files with 1 additions and 12 deletions

View File

@@ -240,11 +240,6 @@ int generic_final_init(bool cold_boot)
return 0;
}
static bool generic_vendor_ext_check(void)
{
return !!generic_platform_ops.vendor_ext_provider;
}
int generic_extensions_init(struct sbi_hart_features *hfeatures)
{
/* Parse the ISA string from FDT and enable the listed extensions */
@@ -340,7 +335,6 @@ struct sbi_platform_operations generic_platform_ops = {
.get_tlb_num_entries = generic_tlb_num_entries,
.timer_init = fdt_timer_init,
.mpxy_init = generic_mpxy_init,
.vendor_ext_check = generic_vendor_ext_check,
};
struct sbi_platform platform = {