[PATCH 5/6] mtd: nand: orion: register the NAND device as "nand"
Michael Grzeschik
grzeschik at puzzle.ch
Tue Nov 3 13:31:11 PST 2026
All other raw NAND drivers register their device as "nand", so the
flash shows up as /dev/nand0 with partitions like /dev/nand0.barebox.
The orion driver used "orion_nand", giving /dev/orion_nand0 and
/dev/orion_nand0.barebox, so board code, environments and documentation
written for the common name did not find the device:
update barebox on /dev/nand0.barebox.bb from /barebox-ram.img using handler nand.
update failed
barebox_update: No such file or directory
Use the common name. Nothing in barebox refers to the old one.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Michael Grzeschik <grzeschik at puzzle.ch>
---
drivers/mtd/nand/raw/nand_orion.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/nand_orion.c b/drivers/mtd/nand/raw/nand_orion.c
index 68797b9b38..eb58cba399 100644
--- a/drivers/mtd/nand/raw/nand_orion.c
+++ b/drivers/mtd/nand/raw/nand_orion.c
@@ -152,7 +152,7 @@ static int orion_nand_probe(struct device *dev)
goto no_dev;
}
- add_mtd_nand_device(mtd, "orion_nand");
+ add_mtd_nand_device(mtd, "nand");
return 0;
no_dev:
if (!IS_ERR(clk))
--
2.53.0
More information about the barebox
mailing list