* [PATCH] powerpc: fsl_pamu_domain: Fix build error
@ 2014-08-20 4:08 Pranith Kumar
0 siblings, 0 replies; only message in thread
From: Pranith Kumar @ 2014-08-20 4:08 UTC (permalink / raw)
To: Joerg Roedel, open list:IOMMU DRIVERS, open list
Fix build failure in fsl_pamu_domain.o caused as follows
drivers/iommu/fsl_pamu_domain.c: In function 'pamu_domain_init':
drivers/iommu/fsl_pamu_domain.c:1103:17: error: 'pci_bus_type' undeclared
(first use in this function)
drivers/iommu/fsl_pamu_domain.c:1103:17: note: each undeclared identifier is
reported only once for each function it appears in
make[2]: *** [drivers/iommu/fsl_pamu_domain.o] Error 1
make[1]: *** [drivers/iommu] Error 2
make: *** [drivers] Error 2
We fix this by trying to dereference pci_bus_type only if CONFIG_PCI is defined.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
---
drivers/iommu/fsl_pamu_domain.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c
index 61d1daf..bb56f86 100644
--- a/drivers/iommu/fsl_pamu_domain.c
+++ b/drivers/iommu/fsl_pamu_domain.c
@@ -1099,7 +1099,9 @@ int pamu_domain_init(void)
return ret;
bus_set_iommu(&platform_bus_type, &fsl_pamu_ops);
+#ifdef CONFIG_PCI
bus_set_iommu(&pci_bus_type, &fsl_pamu_ops);
+#endif
return ret;
}
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-20 4:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 4:08 [PATCH] powerpc: fsl_pamu_domain: Fix build error Pranith Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®