Assign partition of_node so other drivers are able to identify a partition by its Device Tree node. Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx> --- block/partitions/of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/partitions/of.c b/block/partitions/of.c index 4e760fdffb3fe..8b82f9f396866 100644 --- a/block/partitions/of.c +++ b/block/partitions/of.c @@ -48,7 +48,7 @@ static void add_of_partition(struct parsed_partitions *state, int slot, u64 offset = of_read_number(reg, a_cells) / SECTOR_SIZE; u64 size = of_read_number(reg + a_cells, s_cells) / SECTOR_SIZE; - put_partition(state, slot, offset, size); + of_put_partition(state, slot, offset, size, np); if (of_property_read_bool(np, "read-only")) state->parts[slot].flags |= ADDPART_FLAG_READONLY; -- 2.48.1