irqchip/armada-370-xp: Add the __init attribute to mpic_msi_init()
authorMarek Behún <kabel@kernel.org>
Wed, 7 Aug 2024 16:40:55 +0000 (18:40 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 8 Aug 2024 15:15:00 +0000 (17:15 +0200)
Add the __init attribute to the mpic_msi_init() function. It is only
called from the device initializer, and so can be dropped after boot is
complete.

Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-armada-370-xp.c

index fcfc5f86fbff08190ceab51103bd4ed8cc7fb674..f5a693745785e28aa9067f047766ceea1b2058b7 100644 (file)
@@ -314,7 +314,7 @@ static void mpic_msi_reenable_percpu(void)
        writel(1, per_cpu_int_base + MPIC_INT_CLEAR_MASK);
 }
 
-static int mpic_msi_init(struct device_node *node, phys_addr_t main_int_phys_base)
+static int __init mpic_msi_init(struct device_node *node, phys_addr_t main_int_phys_base)
 {
        msi_doorbell_addr = main_int_phys_base + MPIC_SW_TRIG_INT;