powerpc/83xx: add mmc-spi support via the device tree for MPC8323E-RDB
[deliverable/linux.git] / arch / powerpc / platforms / 83xx / mpc832x_rdb.c
index 28e23cde64a1fd20988ffbff2d548da216249631..e1e7eeb7d3a38cc0ea24c49d7a58171323f946b1 100644 (file)
@@ -68,6 +68,12 @@ static int __init mpc832x_spi_init(void)
        par_io_config_pin(3, 14, 2, 0, 0, 0); /* SD_INSERT, I */
        par_io_config_pin(3, 15, 2, 0, 0, 0); /* SD_PROTECT,I */
 
+       /*
+        * Don't bother with legacy stuff when device tree contains
+        * mmc-spi-slot node.
+        */
+       if (of_find_compatible_node(NULL, NULL, "mmc-spi-slot"))
+               return 0;
        return fsl_spi_init(&mpc832x_spi_boardinfo, 1, mpc83xx_spi_cs_control);
 }
 machine_device_initcall(mpc832x_rdb, mpc832x_spi_init);
This page took 0.027165 seconds and 5 git commands to generate.