]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: gic-v3-its: Rename objects
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Wed, 23 Oct 2024 13:20:02 +0000 (15:20 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 27 Oct 2024 23:24:13 +0000 (17:24 -0600)
The code accesses the gic-v3 node, but not the gic-v3-its node,
thus rename the objects to clarify which node it operates on.

The following commit will make use of the gic-v3-its node for real.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/lib/gic-v3-its.c

index 2cc0a32f9d47f1f3def290a08f70183206057e47..22fa46a34176422e2b34918b263f2b7491f742a2 100644 (file)
@@ -35,10 +35,10 @@ static int gic_v3_its_get_gic_addr(struct gic_v3_its_priv *priv)
        int ret;
 
        ret = uclass_get_device_by_driver(UCLASS_IRQ,
-                                         DM_DRIVER_GET(arm_gic_v3_its), &dev);
+                                         DM_DRIVER_GET(arm_gic_v3), &dev);
        if (ret) {
                pr_err("%s: failed to get %s irq device\n", __func__,
-                      DM_DRIVER_GET(arm_gic_v3_its)->name);
+                      DM_DRIVER_GET(arm_gic_v3)->name);
                return ret;
        }
 
@@ -158,13 +158,13 @@ int gic_lpi_tables_init(u64 base, u32 num_redist)
        return 0;
 }
 
-static const struct udevice_id gic_v3_its_ids[] = {
+static const struct udevice_id gic_v3_ids[] = {
        { .compatible = "arm,gic-v3" },
        {}
 };
 
-U_BOOT_DRIVER(arm_gic_v3_its) = {
+U_BOOT_DRIVER(arm_gic_v3) = {
        .name           = "gic-v3",
        .id             = UCLASS_IRQ,
-       .of_match       = gic_v3_its_ids,
+       .of_match       = gic_v3_ids,
 };