Skip to contentSkip to conversation

mtd: powernv_flash: set of_node in mtd's dev

PATCH Applied Rafał Miłecki 2 participants 2 messages Jul 13, 2018 – Jul 18, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: powernv_flash: set of_node in mtd's dev

From: Rafał Miłecki <[email protected]>

This enables some features implemented in mtd subsystem like reading label and partitioning info from DT.

---
 drivers/mtd/devices/powernv_flash.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/devices/powernv_flash.c +1 -0
index c1312b141ae0..33593122e49b 100644
@@ -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;
 }
 
Signature · 1 line
2.13.7
#1 lore raw
Quoted 7 lines · On Fri, 13 Jul 2018 10:15:59 +0200 Rafa=C5=82 Mi=C5=82ecki <[email protected]>…

From: Rafa=C5=82 Mi=C5=82ecki <[email protected]>
=20
This enables some features implemented in mtd subsystem like reading label and partitioning info from DT.
=20

Applied.

Thanks,

Boris

drivers/mtd/devices/po=

Quoted 5 lines
---
 drivers/mtd/devices/powernv_flash.c | 1 +
 1 file changed, 1 insertion(+)

=20

drivers/mtd/devices/po= renamed from drivers/mtd/devices/powernv_flash.c +0 -0

wernv_flash.c

drivers/mtd/devices/powernv_flash.c static int powernv_flash_set_driver_info(struct devic=

Quoted 4 lines

index c1312b141ae0..33593122e49b 100644

drivers/mtd/devices/powernv_flash.c +0 -0
@@ -223,6 +223,7 @@ static int powernv_flash_set_driver_info(struct devic=

e *dev,

Quoted 7 lines
drivers/mtd/devices/powernv_flash.c +1 -0
 	mtd->_read =3D powernv_flash_read;
 	mtd->_write =3D powernv_flash_write;
 	mtd->dev.parent =3D dev;
+	mtd_set_of_node(mtd, dev->of_node);
 	return 0;
 }

=20