summaryrefslogtreecommitdiffstats
path: root/drivers/spi/ath79_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/ath79_spi.c')
-rw-r--r--drivers/spi/ath79_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/ath79_spi.c b/drivers/spi/ath79_spi.c
index 383570b253..5b1f984be4 100644
--- a/drivers/spi/ath79_spi.c
+++ b/drivers/spi/ath79_spi.c
@@ -238,7 +238,7 @@ static int ath79_spi_probe(struct device_d *dev)
master->num_chipselect = 3;
if (IS_ENABLED(CONFIG_OFDEVICE)) {
- struct device_node *node = dev->device_node;
+ struct device_node *node = dev->of_node;
u32 num_cs;
int ret;