Skip to content

Commit

Permalink
powerpc/chrp: Make hydra_init() static
Browse files Browse the repository at this point in the history
Commit 407d418 ("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
  • Loading branch information
Geert Uytterhoeven authored and Michael Ellerman committed Mar 24, 2021
1 parent 9be77e1 commit 9634afa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions arch/powerpc/include/asm/hydra.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ extern volatile struct Hydra __iomem *Hydra;
#define HYDRA_INT_EXT7 18 /* Power Off Request */
#define HYDRA_INT_SPARE 19

extern int hydra_init(void);

#endif /* __KERNEL__ */

#endif /* _ASMPPC_HYDRA_H */
3 changes: 1 addition & 2 deletions arch/powerpc/platforms/chrp/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ static struct pci_ops rtas_pci_ops =

volatile struct Hydra __iomem *Hydra = NULL;

int __init
hydra_init(void)
static int __init hydra_init(void)
{
struct device_node *np;
struct resource r;
Expand Down

0 comments on commit 9634afa

Please sign in to comment.