Skip to content

Commit 400ffa0

Browse files
Graham MooreDinh Nguyen
authored andcommitted
Set spi_master addr_width parameter in m25p80, needed by Cadence QSPI driver.
1 parent 6e03ee8 commit 400ffa0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/mtd/devices/m25p80.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ static int m25p_probe(struct spi_device *spi)
211211
if (ret)
212212
return ret;
213213

214+
spi->addr_width = nor->addr_width;
215+
216+
data = dev_get_platdata(&spi->dev);
214217
return mtd_device_register(&nor->mtd, data ? data->parts : NULL,
215218
data ? data->nr_parts : 0);
216219
}

0 commit comments

Comments
 (0)