@@ -777,6 +777,7 @@ config FSL_PCI
bool
select PPC_INDIRECT_PCI
select PCI_QUIRKS
+ select FSL_GUTS
config FSL_PMC
bool
@@ -22,6 +22,7 @@
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/fsl/edac.h>
+#include <linux/fsl/guts.h>
#include <linux/fsl/svr.h>
#include <linux/init.h>
#include <linux/interrupt.h>
@@ -529,7 +530,10 @@ int fsl_add_bridge(struct platform_device *pdev, int is_primary)
struct device_node *dev;
struct ccsr_pci __iomem *pci;
u16 temp;
- u32 svr = mfspr(SPRN_SVR);
+ u32 svr;
+
+ fsl_guts_init();
+ svr = fsl_guts_get_svr();
dev = pdev->dev.of_node;
Establish an initial user of fsl_guts_get_svr(), so that the code gets some test coverage until users outside arch/powerpc can get converted. Signed-off-by: Scott Wood <oss@buserror.net> --- arch/powerpc/Kconfig | 1 + arch/powerpc/sysdev/fsl_pci.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-)