* [PATCH] powerpc/85xx/86xx: Fix build w/ CONFIG_PCI=n
@ 2010-04-16 19:07 Anton Vorontsov
2010-04-20 4:13 ` Kumar Gala
0 siblings, 1 reply; 2+ messages in thread
From: Anton Vorontsov @ 2010-04-16 19:07 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev
Currently some MPC85xx and MPC86xx boards fail to build without
CONFIG_PCI:
arch/powerpc/platforms/fsl_uli1575.c: In function 'quirk_final_uli5249':
arch/powerpc/platforms/fsl_uli1575.c:234: error: implicit declaration of function 'pci_bus_for_each_resource'
arch/powerpc/platforms/fsl_uli1575.c:234: error: expected ';' before '{' token
cc1: warnings being treated as errors
arch/powerpc/platforms/fsl_uli1575.c:223: warning: unused variable 'dummy'
make[1]: *** [arch/powerpc/platforms/fsl_uli1575.o] Error 1
This patch fixes the issue by appending 'if PCI' condition when
selecting FSL_ULI1575 Kconfig symbol.
Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
---
arch/powerpc/platforms/85xx/Kconfig | 4 ++--
arch/powerpc/platforms/86xx/Kconfig | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
index d951218..3a2ade2 100644
--- a/arch/powerpc/platforms/85xx/Kconfig
+++ b/arch/powerpc/platforms/85xx/Kconfig
@@ -51,7 +51,7 @@ config MPC85xx_DS
bool "Freescale MPC85xx DS"
select PPC_I8259
select DEFAULT_UIMAGE
- select FSL_ULI1575
+ select FSL_ULI1575 if PCI
select SWIOTLB
help
This option enables support for the MPC85xx DS (MPC8544 DS) board
@@ -60,7 +60,7 @@ config MPC85xx_RDB
bool "Freescale MPC85xx RDB"
select PPC_I8259
select DEFAULT_UIMAGE
- select FSL_ULI1575
+ select FSL_ULI1575 if PCI
select SWIOTLB
help
This option enables support for the MPC85xx RDB (P2020 RDB) board
diff --git a/arch/powerpc/platforms/86xx/Kconfig b/arch/powerpc/platforms/86xx/Kconfig
index fbe9f36..a0b5638 100644
--- a/arch/powerpc/platforms/86xx/Kconfig
+++ b/arch/powerpc/platforms/86xx/Kconfig
@@ -13,7 +13,7 @@ config MPC8641_HPCN
bool "Freescale MPC8641 HPCN"
select PPC_I8259
select DEFAULT_UIMAGE
- select FSL_ULI1575
+ select FSL_ULI1575 if PCI
select HAS_RAPIDIO
select SWIOTLB
help
@@ -28,7 +28,7 @@ config SBC8641D
config MPC8610_HPCD
bool "Freescale MPC8610 HPCD"
select DEFAULT_UIMAGE
- select FSL_ULI1575
+ select FSL_ULI1575 if PCI
help
This option enables support for the MPC8610 HPCD board.
--
1.7.0.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc/85xx/86xx: Fix build w/ CONFIG_PCI=n
2010-04-16 19:07 [PATCH] powerpc/85xx/86xx: Fix build w/ CONFIG_PCI=n Anton Vorontsov
@ 2010-04-20 4:13 ` Kumar Gala
0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2010-04-20 4:13 UTC (permalink / raw)
To: Anton Vorontsov; +Cc: linuxppc-dev
On Apr 16, 2010, at 2:07 PM, Anton Vorontsov wrote:
> Currently some MPC85xx and MPC86xx boards fail to build without
> CONFIG_PCI:
>=20
> arch/powerpc/platforms/fsl_uli1575.c: In function =
'quirk_final_uli5249':
> arch/powerpc/platforms/fsl_uli1575.c:234: error: implicit declaration =
of function 'pci_bus_for_each_resource'
> arch/powerpc/platforms/fsl_uli1575.c:234: error: expected ';' before =
'{' token
> cc1: warnings being treated as errors
> arch/powerpc/platforms/fsl_uli1575.c:223: warning: unused variable =
'dummy'
> make[1]: *** [arch/powerpc/platforms/fsl_uli1575.o] Error 1
>=20
> This patch fixes the issue by appending 'if PCI' condition when
> selecting FSL_ULI1575 Kconfig symbol.
>=20
> Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
> ---
> arch/powerpc/platforms/85xx/Kconfig | 4 ++--
> arch/powerpc/platforms/86xx/Kconfig | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
applied to merge.
- k=
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-20 4:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16 19:07 [PATCH] powerpc/85xx/86xx: Fix build w/ CONFIG_PCI=n Anton Vorontsov
2010-04-20 4:13 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).