aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/mtd/spi-nor/xilinx.c
diff options
context:
space:
mode:
authorMichael Walle <mwalle@kernel.org>2023-09-08 12:16:26 +0200
committerTudor Ambarus <tudor.ambarus@linaro.org>2023-09-19 18:49:54 +0300
commite255a79162b6fbf3c62f2883ef9ecd66feb10fb6 (patch)
tree88fd7e69d9f7e7f939652f68f3c5f775bbac792b /drivers/mtd/spi-nor/xilinx.c
parentmtd: spi-nor: store .n_banks in struct spi_nor_flash_parameter (diff)
downloadwireguard-linux-e255a79162b6fbf3c62f2883ef9ecd66feb10fb6.tar.xz
wireguard-linux-e255a79162b6fbf3c62f2883ef9ecd66feb10fb6.zip
mtd: spi-nor: default .n_banks to 1
If .n_banks is not set in the flash_info database, the default value should be 1. This way, we don't have to always set the .n_banks parameter in flash_info. Signed-off-by: Michael Walle <mwalle@kernel.org> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20230807-mtd-flash-info-db-rework-v3-8-e60548861b10@kernel.org Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Diffstat (limited to '')
-rw-r--r--drivers/mtd/spi-nor/xilinx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/xilinx.c b/drivers/mtd/spi-nor/xilinx.c
index 284e2e4970ab..8d4539e32dfe 100644
--- a/drivers/mtd/spi-nor/xilinx.c
+++ b/drivers/mtd/spi-nor/xilinx.c
@@ -26,7 +26,6 @@
.size = 8 * (_page_size) * (_n_sectors), \
.sector_size = (8 * (_page_size)), \
.page_size = (_page_size), \
- .n_banks = 1, \
.flags = SPI_NOR_NO_FR
/* Xilinx S3AN share MFR with Atmel SPI NOR */