Message ID | 1392907389-21798-2-git-send-email-geert@linux-m68k.org (mailing list archive) |
---|---|
State | Awaiting Upstream |
Headers | show |
On Thu, Feb 20, 2014 at 03:43:00PM +0100, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven <geert+renesas@linux-m68k.org> > > DT doesn't instantiate SPI children if spi_master.dev.of_node is not set up > properly. Applied, thanks.
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 33474061b742..e6f79b2f2616 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -710,6 +710,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;