aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/83xx/mpc832x_rdb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c
index 28e23cde64a1..e1e7eeb7d3a3 100644
--- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c
@@ -68,6 +68,12 @@ static int __init mpc832x_spi_init(void)
68 par_io_config_pin(3, 14, 2, 0, 0, 0); /* SD_INSERT, I */ 68 par_io_config_pin(3, 14, 2, 0, 0, 0); /* SD_INSERT, I */
69 par_io_config_pin(3, 15, 2, 0, 0, 0); /* SD_PROTECT,I */ 69 par_io_config_pin(3, 15, 2, 0, 0, 0); /* SD_PROTECT,I */
70 70
71 /*
72 * Don't bother with legacy stuff when device tree contains
73 * mmc-spi-slot node.
74 */
75 if (of_find_compatible_node(NULL, NULL, "mmc-spi-slot"))
76 return 0;
71 return fsl_spi_init(&mpc832x_spi_boardinfo, 1, mpc83xx_spi_cs_control); 77 return fsl_spi_init(&mpc832x_spi_boardinfo, 1, mpc83xx_spi_cs_control);
72} 78}
73machine_device_initcall(mpc832x_rdb, mpc832x_spi_init); 79machine_device_initcall(mpc832x_rdb, mpc832x_spi_init);