powerpc/embedded6xx: Add __init attribute to eligible functions

Some functions defined in 'arch/powerpc/platforms/embedded6xx' are
deserving of an `__init` macro attribute. These functions are only
called by other initialization functions and therefore should inherit
the attribute.
Also, change function declarations in header files to include `__init`.

Signed-off-by: Nick Child <nick.child@ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211216220035.605465-17-nick.child@ibm.com
This commit is contained in:
Nick Child
2021-12-16 17:00:31 -05:00
committed by Michael Ellerman
parent 1ee969be25
commit c0dc225ae7
5 changed files with 7 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ static void __hlwd_quiesce(void __iomem *io_base)
out_be32(io_base + HW_BROADWAY_ICR, 0xffffffff);
}
static struct irq_domain *hlwd_pic_init(struct device_node *np)
static struct irq_domain *__init hlwd_pic_init(struct device_node *np)
{
struct irq_domain *irq_domain;
struct resource res;
@@ -197,7 +197,7 @@ unsigned int hlwd_pic_get_irq(void)
*
*/
void hlwd_pic_probe(void)
void __init hlwd_pic_probe(void)
{
struct irq_domain *host;
struct device_node *np;