Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/chrp: Make hydra_init() static

Commit 407d418f2fd4c20a ("powerpc/chrp: Move PHB discovery") moved the
sole call to hydra_init() to the source file where it is defined, so it
can be made static.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210223095345.2139416-1-geert@linux-m68k.org

authored by

Geert Uytterhoeven and committed by
Michael Ellerman
9634afa6 9be77e11

+1 -4
-2
arch/powerpc/include/asm/hydra.h
··· 94 94 #define HYDRA_INT_EXT7 18 /* Power Off Request */ 95 95 #define HYDRA_INT_SPARE 19 96 96 97 - extern int hydra_init(void); 98 - 99 97 #endif /* __KERNEL__ */ 100 98 101 99 #endif /* _ASMPPC_HYDRA_H */
+1 -2
arch/powerpc/platforms/chrp/pci.c
··· 131 131 132 132 volatile struct Hydra __iomem *Hydra = NULL; 133 133 134 - int __init 135 - hydra_init(void) 134 + static int __init hydra_init(void) 136 135 { 137 136 struct device_node *np; 138 137 struct resource r;