diff options
author | Nick Child <nick.child@ibm.com> | 2021-12-16 23:00:32 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-23 12:33:18 +0100 |
commit | f4a88b0ef5c5f7ce218aced7d811a31dd311a0b0 (patch) | |
tree | e6b9d65517de1fff7b2e1ab17b241abba24e9d28 /arch/powerpc/platforms/83xx/mpc83xx.h | |
parent | powerpc/embedded6xx: Add __init attribute to eligible functions (diff) | |
download | linux-f4a88b0ef5c5f7ce218aced7d811a31dd311a0b0.tar.xz linux-f4a88b0ef5c5f7ce218aced7d811a31dd311a0b0.zip |
powerpc/83xx: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/83xx' 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-18-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/platforms/83xx/mpc83xx.h')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc83xx.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc83xx.h b/arch/powerpc/platforms/83xx/mpc83xx.h index a30d30588cf6..aea803ba3a15 100644 --- a/arch/powerpc/platforms/83xx/mpc83xx.h +++ b/arch/powerpc/platforms/83xx/mpc83xx.h @@ -68,9 +68,9 @@ extern void __noreturn mpc83xx_restart(char *cmd); extern long mpc83xx_time_init(void); -extern int mpc837x_usb_cfg(void); -extern int mpc834x_usb_cfg(void); -extern int mpc831x_usb_cfg(void); +int __init mpc837x_usb_cfg(void); +int __init mpc834x_usb_cfg(void); +int __init mpc831x_usb_cfg(void); extern void mpc83xx_ipic_init_IRQ(void); #ifdef CONFIG_PCI |