summaryrefslogtreecommitdiffstats
path: root/drivers/of/partition.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-05-05 13:32:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-05 13:32:37 +0200
commit9bb76883c19f360693d54b12b67a9b0d17dc83a8 (patch)
tree3dd63dbd98e6b77545c661e416bc7feebb3ae515 /drivers/of/partition.c
parentbf1d71d5e192e242c7ce7cdb3d4c70c6a7ae4858 (diff)
parent66d0f93d5ca372b985dc61d01177fdc5f88392b4 (diff)
downloadbarebox-9bb76883c19f360693d54b12b67a9b0d17dc83a8.tar.gz
barebox-9bb76883c19f360693d54b12b67a9b0d17dc83a8.tar.xz
Merge branch 'for-next/of'
Diffstat (limited to 'drivers/of/partition.c')
-rw-r--r--drivers/of/partition.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/partition.c b/drivers/of/partition.c
index 074be090e6..e2ddec564e 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;
free(filename);