spi: sh-msiof: Fix SPI bus population from DT
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Thu, 20 Feb 2014 14:43:00 +0000 (15:43 +0100)
committerMark Brown <broonie@linaro.org>
Sat, 22 Feb 2014 03:11:04 +0000 (12:11 +0900)
DT doesn't instantiate SPI children if spi_master.dev.of_node is not set up
properly.

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sh-msiof.c

index 81cc02f5f9b02494379bbc7cfb5547f17c48fb20..21ac8f6686823d44c090f84379cd7fa2c89525e8 100644 (file)
@@ -711,6 +711,7 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
        master->mode_bits |= SPI_LSB_FIRST | SPI_3WIRE;
        master->flags = 0;
        master->bus_num = pdev->id;
+       master->dev.of_node = pdev->dev.of_node;
        master->num_chipselect = p->info->num_chipselect;
        master->setup = spi_bitbang_setup;
        master->cleanup = spi_bitbang_cleanup;