Some functions defined in 'arch/powerpc/platforms/512x' 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-20-nick.child@ibm.com
20 lines
616 B
C
20 lines
616 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved.
|
|
*
|
|
* Prototypes for MPC512x shared code
|
|
*/
|
|
|
|
#ifndef __MPC512X_H__
|
|
#define __MPC512X_H__
|
|
extern void __init mpc512x_init_IRQ(void);
|
|
extern void __init mpc512x_init_early(void);
|
|
extern void __init mpc512x_init(void);
|
|
extern void __init mpc512x_setup_arch(void);
|
|
extern int __init mpc5121_clk_init(void);
|
|
const char *__init mpc512x_select_psc_compat(void);
|
|
const char *__init mpc512x_select_reset_compat(void);
|
|
extern void __noreturn mpc512x_restart(char *cmd);
|
|
|
|
#endif /* __MPC512X_H__ */
|