aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r--arch/powerpc/sysdev/fsl_soc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index be5e0bda2318..3ace7474809e 100644
--- a/arch/powerpc/sysdev/fsl_soc.c
+++ b/arch/powerpc/sysdev/fsl_soc.c
@@ -1222,8 +1222,12 @@ int __init fsl_spi_init(struct spi_board_info *board_infos,
1222 unsigned int i; 1222 unsigned int i;
1223 const u32 *sysclk; 1223 const u32 *sysclk;
1224 1224
1225 /* SPI controller is either clocked from QE or SoC clock */
1225 np = of_find_node_by_type(NULL, "qe"); 1226 np = of_find_node_by_type(NULL, "qe");
1226 if (!np) 1227 if (!np)
1228 np = of_find_node_by_type(NULL, "soc");
1229
1230 if (!np)
1227 return -ENODEV; 1231 return -ENODEV;
1228 1232
1229 sysclk = of_get_property(np, "bus-frequency", NULL); 1233 sysclk = of_get_property(np, "bus-frequency", NULL);