summaryrefslogtreecommitdiff
path: root/drivers/of/of_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/of_spi.c')
-rw-r--r--drivers/of/of_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/of_spi.c b/drivers/of/of_spi.c
index f65f48b98448..f3119a0836af 100644
--- a/drivers/of/of_spi.c
+++ b/drivers/of/of_spi.c
@@ -79,6 +79,7 @@ void of_register_spi_devices(struct spi_master *master, struct device_node *np)
/* Store a pointer to the node in the device structure */
of_node_get(nc);
+ spi->dev.of_node = nc;
spi->dev.archdata.of_node = nc;
/* Register the new device */