mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] of: partition: set device_node of the newly created partition
@ 2014-04-28  9:31 Sascha Hauer
  2014-04-28  9:31 ` [PATCH 2/3] of: move of_find_device_by_node_path to drivers/of/of_path.c Sascha Hauer
  2014-04-28  9:31 ` [PATCH 3/3] of_path: Allow to specify path with phandle only Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Sascha Hauer @ 2014-04-28  9:31 UTC (permalink / raw)
  To: barebox

So that we can find the devicenode for a partition.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/of/partition.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/of/partition.c b/drivers/of/partition.c
index 5ed44a8..0560eb3 100644
--- a/drivers/of/partition.c
+++ b/drivers/of/partition.c
@@ -60,6 +60,8 @@ struct cdev *of_parse_partition(struct cdev *cdev, struct device_node *node)
 	filename = asprintf("%s.%s", cdev->name, partname);
 
 	new = devfs_add_partition(cdev->name, offset, size, flags, filename);
+	if (new && new->dev)
+		new->dev->device_node = node;
 
 	if (cdev->mtd && cdev->mtd->type == MTD_NANDFLASH)
 		dev_add_bb_dev(filename, NULL);
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-28  9:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-28  9:31 [PATCH 1/3] of: partition: set device_node of the newly created partition Sascha Hauer
2014-04-28  9:31 ` [PATCH 2/3] of: move of_find_device_by_node_path to drivers/of/of_path.c Sascha Hauer
2014-04-28  9:31 ` [PATCH 3/3] of_path: Allow to specify path with phandle only Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox