diff --git a/target/linux/pistachio/patches-6.18/401-mtd-nor-support-mtd-name-from-device-tree.patch b/target/linux/pistachio/patches-6.18/401-mtd-nor-support-mtd-name-from-device-tree.patch index 942f67b6bea..7e3e37bd313 100644 --- a/target/linux/pistachio/patches-6.18/401-mtd-nor-support-mtd-name-from-device-tree.patch +++ b/target/linux/pistachio/patches-6.18/401-mtd-nor-support-mtd-name-from-device-tree.patch @@ -10,7 +10,7 @@ Signed-off-by: Abhimanyu Vishwakarma --- a/drivers/spi/spi-mem.c +++ b/drivers/spi/spi-mem.c -@@ -950,7 +950,9 @@ static int spi_mem_probe(struct spi_devi +@@ -1016,7 +1016,9 @@ static int spi_mem_probe(struct spi_devi { struct spi_mem_driver *memdrv = to_spi_mem_drv(spi->dev.driver); struct spi_controller *ctlr = spi->controller; @@ -20,7 +20,7 @@ Signed-off-by: Abhimanyu Vishwakarma mem = devm_kzalloc(&spi->dev, sizeof(*mem), GFP_KERNEL); if (!mem) -@@ -958,10 +960,15 @@ static int spi_mem_probe(struct spi_devi +@@ -1024,10 +1026,15 @@ static int spi_mem_probe(struct spi_devi mem->spi = spi; @@ -41,7 +41,7 @@ Signed-off-by: Abhimanyu Vishwakarma return PTR_ERR_OR_ZERO(mem->name); --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c -@@ -849,6 +849,17 @@ out_error: +@@ -902,6 +902,17 @@ out_error: */ static void mtd_set_dev_defaults(struct mtd_info *mtd) {