summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/powernv_flash.c
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2018-07-13 10:15:59 +0200
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-07-18 16:31:24 +0200
commit9ea97a7d689c55a5528bfaad499edf1a4ca02e2a (patch)
treee4da1bccdf0cee6c33cec182eac7790811235ce2 /drivers/mtd/devices/powernv_flash.c
parentfb60e87dc4aa415f9d797c5df522eb9578366359 (diff)
downloadlinux-stable-9ea97a7d689c55a5528bfaad499edf1a4ca02e2a.tar.gz
linux-stable-9ea97a7d689c55a5528bfaad499edf1a4ca02e2a.tar.bz2
linux-stable-9ea97a7d689c55a5528bfaad499edf1a4ca02e2a.zip
mtd: powernv_flash: set of_node in mtd's dev
This enables some features implemented in mtd subsystem like reading label and partitioning info from DT. Reported-by: Timothy Pearson <tpearson@raptorengineering.com> Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/devices/powernv_flash.c')
-rw-r--r--drivers/mtd/devices/powernv_flash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/devices/powernv_flash.c b/drivers/mtd/devices/powernv_flash.c
index c1312b141ae0..33593122e49b 100644
--- a/drivers/mtd/devices/powernv_flash.c
+++ b/drivers/mtd/devices/powernv_flash.c
@@ -223,6 +223,7 @@ static int powernv_flash_set_driver_info(struct device *dev,
mtd->_read = powernv_flash_read;
mtd->_write = powernv_flash_write;
mtd->dev.parent = dev;
+ mtd_set_of_node(mtd, dev->of_node);
return 0;
}