From 42e9401bd1467d22c4dc4d2c637347b874e6a80b Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 9 Feb 2017 11:50:24 +0100 Subject: mtd: Add partition device node to mtd partition devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The user visible change here is that mtd partitions get an of_node link in sysfs. Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König Signed-off-by: Brian Norris --- drivers/mtd/ofpart.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/mtd/ofpart.c') diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c index ede407d6e106..464470122493 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c @@ -108,6 +108,7 @@ static int parse_ofpart_partitions(struct mtd_info *master, parts[i].offset = of_read_number(reg, a_cells); parts[i].size = of_read_number(reg + a_cells, s_cells); + parts[i].of_node = pp; partname = of_get_property(pp, "label", &len); if (!partname) -- cgit v1.2.3