diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2010-10-08 12:11:19 -0400 |
---|---|---|
committer | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2010-12-02 11:55:13 -0500 |
commit | 21486af0f34d03b813b023d7a2b887b329f60486 (patch) | |
tree | 0c0bae3b1dccc79a7870addc60a8269d7927f25b /drivers/spi/pxa2xx_spi.c | |
parent | 579d3bb2ac1a351bbf536480a9ab38199bbf901d (diff) |
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: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'drivers/spi/pxa2xx_spi.c')
-rw-r--r-- | drivers/spi/pxa2xx_spi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/spi/pxa2xx_spi.c b/drivers/spi/pxa2xx_spi.c index 9ca6454cfadc..95928833855b 100644 --- a/drivers/spi/pxa2xx_spi.c +++ b/drivers/spi/pxa2xx_spi.c | |||
@@ -1556,6 +1556,10 @@ static int __devinit pxa2xx_spi_probe(struct platform_device *pdev) | |||
1556 | drv_data->pdev = pdev; | 1556 | drv_data->pdev = pdev; |
1557 | drv_data->ssp = ssp; | 1557 | drv_data->ssp = ssp; |
1558 | 1558 | ||
1559 | master->dev.parent = &pdev->dev; | ||
1560 | #ifdef CONFIG_OF | ||
1561 | master->dev.of_node = pdev->dev.of_node; | ||
1562 | #endif | ||
1559 | /* the spi->mode bits understood by this driver: */ | 1563 | /* the spi->mode bits understood by this driver: */ |
1560 | master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; | 1564 | master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; |
1561 | 1565 | ||