mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 11:20:49 +07:00
powerpc/8xx: add __init to cpm1 init functions
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
This commit is contained in:
parent
b020aa9d1e
commit
132f92fdc4
@ -130,7 +130,7 @@ static const struct irq_domain_ops cpm_pic_host_ops = {
|
|||||||
.map = cpm_pic_host_map,
|
.map = cpm_pic_host_map,
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned int cpm_pic_init(void)
|
unsigned int __init cpm_pic_init(void)
|
||||||
{
|
{
|
||||||
struct device_node *np = NULL;
|
struct device_node *np = NULL;
|
||||||
struct resource res;
|
struct resource res;
|
||||||
@ -306,7 +306,7 @@ struct cpm_ioport32e {
|
|||||||
__be32 dir, par, sor, odr, dat;
|
__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;
|
struct cpm_ioport32e __iomem *iop;
|
||||||
pin = 1 << (31 - pin);
|
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 *iop =
|
||||||
(struct cpm_ioport16 __iomem *)&mpc8xx_immr->im_ioport;
|
(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)
|
if (port == CPM_PORTB || port == CPM_PORTE)
|
||||||
cpm1_set_pin32(port, pin, flags);
|
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);
|
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 shift;
|
||||||
int i, bits = 0;
|
int i, bits = 0;
|
||||||
|
@ -125,7 +125,7 @@ static const struct irq_domain_ops mpc8xx_pic_host_ops = {
|
|||||||
.xlate = mpc8xx_pic_host_xlate,
|
.xlate = mpc8xx_pic_host_xlate,
|
||||||
};
|
};
|
||||||
|
|
||||||
int mpc8xx_pic_init(void)
|
int __init mpc8xx_pic_init(void)
|
||||||
{
|
{
|
||||||
struct resource res;
|
struct resource res;
|
||||||
struct device_node *np;
|
struct device_node *np;
|
||||||
|
Loading…
Reference in New Issue
Block a user