Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rafał Miłecki and committed by
Boris Brezillon
9ea97a7d fb60e87d

+1
+1
drivers/mtd/devices/powernv_flash.c
··· 223 223 mtd->_read = powernv_flash_read; 224 224 mtd->_write = powernv_flash_write; 225 225 mtd->dev.parent = dev; 226 + mtd_set_of_node(mtd, dev->of_node); 226 227 return 0; 227 228 } 228 229