[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c0b234511303c2efbbff336ed4d5bb993b54f16b.1741107851.git.daniel@makrotopia.org>
Date: Tue, 4 Mar 2025 17:06:17 +0000
From: Daniel Golle <daniel@...rotopia.org>
To: Jens Axboe <axboe@...nel.dk>, Daniel Golle <daniel@...rotopia.org>,
Christian Marangi <ansuelsmth@...il.com>,
Al Viro <viro@...iv.linux.org.uk>,
Douglas Anderson <dianders@...gle.com>,
Christian Brauner <brauner@...nel.org>,
Riyan Dhiman <riyandhiman14@...il.com>,
Konstantin Khlebnikov <koct9i@...il.com>,
Li Lingfeng <lilingfeng3@...wei.com>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] block: partitions: of: assign Device Tree node to
partition
Assign partition of_node so other drivers are able to identify a
partition by its Device Tree node.
Signed-off-by: Daniel Golle <daniel@...rotopia.org>
---
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
Powered by blists - more mailing lists