]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc/8xx: add __init to cpm1 init functions
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 12 Sep 2019 13:22:55 +0000 (13:22 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 19 Nov 2019 08:38:35 +0000 (19:38 +1100)
Functions cpm1_clk_setup(), cpm1_set_pin(), cpm_pic_init() and
mpc8xx_pic_init() are only called from __init functions, so mark
them __init as well.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c27168ef054f3a52edcf0ff91652700d53b3e32d.1568294563.git.christophe.leroy@c-s.fr
arch/powerpc/platforms/8xx/cpm1.c
arch/powerpc/platforms/8xx/pic.c

index 0f65c51271db9e769bebf2c31f1626ebff7ce3e5..81a1a2eb116a49ebfe61f7fd9550baeb45c07696 100644 (file)
@@ -130,7 +130,7 @@ static const struct irq_domain_ops cpm_pic_host_ops = {
        .map = cpm_pic_host_map,
 };
 
-unsigned int cpm_pic_init(void)
+unsigned int __init cpm_pic_init(void)
 {
        struct device_node *np = NULL;
        struct resource res;
@@ -306,7 +306,7 @@ struct cpm_ioport32e {
        __be32 dir, par, sor, odr, dat;
 };
 
-static void cpm1_set_pin32(int port, int pin, int flags)
+static void __init cpm1_set_pin32(int port, int pin, int flags)
 {
        struct cpm_ioport32e __iomem *iop;
        pin = 1 << (31 - pin);
@@ -348,7 +348,7 @@ static void cpm1_set_pin32(int port, int pin, int flags)
        }
 }
 
-static void cpm1_set_pin16(int port, int pin, int flags)
+static void __init cpm1_set_pin16(int port, int pin, int flags)
 {
        struct cpm_ioport16 __iomem *iop =
                (struct cpm_ioport16 __iomem *)&mpc8xx_immr->im_ioport;
@@ -386,7 +386,7 @@ static void cpm1_set_pin16(int port, int pin, int flags)
        }
 }
 
-void cpm1_set_pin(enum cpm_port port, int pin, int flags)
+void __init cpm1_set_pin(enum cpm_port port, int pin, int flags)
 {
        if (port == CPM_PORTB || port == CPM_PORTE)
                cpm1_set_pin32(port, pin, flags);
@@ -394,7 +394,7 @@ void cpm1_set_pin(enum cpm_port port, int pin, int flags)
                cpm1_set_pin16(port, pin, flags);
 }
 
-int cpm1_clk_setup(enum cpm_clk_target target, int clock, int mode)
+int __init cpm1_clk_setup(enum cpm_clk_target target, int clock, int mode)
 {
        int shift;
        int i, bits = 0;
index e9617d35fd1f6cafd4eea37398ba6183d00783e3..f2ba837249d694ab47a843ecff366191b64ea4cb 100644 (file)
@@ -125,7 +125,7 @@ static const struct irq_domain_ops mpc8xx_pic_host_ops = {
        .xlate = mpc8xx_pic_host_xlate,
 };
 
-int mpc8xx_pic_init(void)
+int __init mpc8xx_pic_init(void)
 {
        struct resource res;
        struct device_node *np;