Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21486af0 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior
Browse files

spi/pxa2xx: pass of_node to spi device and set a parent device



the of_node will auto-publish devices which are added to the device
tree.

Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
parent 579d3bb2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1556,6 +1556,10 @@ static int __devinit pxa2xx_spi_probe(struct platform_device *pdev)
	drv_data->pdev = pdev;
	drv_data->ssp = ssp;

	master->dev.parent = &pdev->dev;
#ifdef CONFIG_OF
	master->dev.of_node = pdev->dev.of_node;
#endif
	/* the spi->mode bits understood by this driver: */
	master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;