Skip to content

Commit

Permalink
powerpc: Remove asm/prom.h from asm/mpc52xx.h and asm/pci.h
Browse files Browse the repository at this point in the history
asm/pci.h and asm/mpc52xx.h don't need asm/prom.h

Declare struct device_node locally to avoid including of.h

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
  • Loading branch information
chleroy authored and intel-lab-lkp committed Jul 8, 2022
1 parent 92066af commit e042804
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion arch/powerpc/include/asm/mpc52xx.h
Expand Up @@ -15,7 +15,6 @@

#ifndef __ASSEMBLY__
#include <asm/types.h>
#include <asm/prom.h>
#include <asm/mpc5xxx.h>
#endif /* __ASSEMBLY__ */

Expand Down Expand Up @@ -268,6 +267,8 @@ struct mpc52xx_intr {

#ifndef __ASSEMBLY__

struct device_node;

/* mpc52xx_common.c */
extern void mpc5200_setup_xlb_arbiter(void);
extern void mpc52xx_declare_of_platform_devices(void);
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/include/asm/pci.h
Expand Up @@ -14,7 +14,6 @@

#include <asm/machdep.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/pci-bridge.h>

/* Return values for pci_controller_ops.probe_mode function */
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/kernel/prom.c
Expand Up @@ -54,6 +54,7 @@
#include <asm/dt_cpu_ftrs.h>
#include <asm/drmem.h>
#include <asm/ultravisor.h>
#include <asm/prom.h>

#include <mm/mmu_decl.h>

Expand Down

0 comments on commit e042804

Please sign in to comment.