mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
powerpc/44x: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/44x/' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. 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-16-nick.child@ibm.com
This commit is contained in:
parent
1e3d992d21
commit
1ee969be25
|
|
@ -197,7 +197,7 @@ static irqreturn_t rst_wrn_handler(int irq, void *data) {
|
|||
}
|
||||
}
|
||||
|
||||
static void node_irq_request(const char *compat, irq_handler_t errirq_handler)
|
||||
static void __init node_irq_request(const char *compat, irq_handler_t errirq_handler)
|
||||
{
|
||||
struct device_node *np;
|
||||
unsigned int irq;
|
||||
|
|
@ -222,7 +222,7 @@ static void node_irq_request(const char *compat, irq_handler_t errirq_handler)
|
|||
}
|
||||
}
|
||||
|
||||
static void critical_irq_setup(void)
|
||||
static void __init critical_irq_setup(void)
|
||||
{
|
||||
node_irq_request(FSP2_CMU_ERR, cmu_err_handler);
|
||||
node_irq_request(FSP2_BUS_ERR, bus_err_handler);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user