diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2018-03-26 16:25:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-29 09:01:55 +0200 |
commit | f706862d559f94d2eb5608d0a87f00038e5061b0 (patch) | |
tree | 956b3080384c8eedc5bd10c1ffe9c72bb7a68924 | |
parent | ca880912a473ec6e92d78ddf0aa24857536e57da (diff) | |
download | barebox-f706862d559f94d2eb5608d0a87f00038e5061b0.tar.gz barebox-f706862d559f94d2eb5608d0a87f00038e5061b0.tar.xz |
of: partition: fix typo when writing #address-cells
On > 4 GiB eMMC devices, barebox writes a 32-bit address and a 64-bit
size into the partition reg property, because #address-cells is
accidentally written as '#addres-cells'. This causes a fallback to
32-bit address size. Fix the typo and thereby of_partition_fixup for
64-bit partitions.
Fixes: a2fa18f9f483 ("mtd: of: Make used partition binding configurable")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/of/partition.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/partition.c b/drivers/of/partition.c index 6f9651a9e4..aa6e601b7f 100644 --- a/drivers/of/partition.c +++ b/drivers/of/partition.c @@ -190,7 +190,7 @@ static int of_partition_fixup(struct device_node *root, void *ctx) if (ret) return ret; - of_property_write_u32(partnode, "#addres-cells", n_cells); + of_property_write_u32(partnode, "#address-cells", n_cells); if (ret) return ret; |