diff --git a/drivers/mtd/spi-nor/controllers/bsp-sfc.c b/drivers/mtd/spi-nor/controllers/bsp-sfc.c index 42c11bea72..e0995671bb 100644 --- a/drivers/mtd/spi-nor/controllers/bsp-sfc.c +++ b/drivers/mtd/spi-nor/controllers/bsp-sfc.c @@ -585,13 +585,6 @@ static int bsp_spi_nor_register(struct device_node *np, nor->priv = priv; nor->controller_ops = &bsp_controller_ops; -#ifndef CONFIG_CLOSE_SPI_8PIN_4IO - hwcaps.mask |= SNOR_HWCAPS_READ_1_1_4 | - SNOR_HWCAPS_READ_1_4_4 | - SNOR_HWCAPS_PP_1_1_4 | - SNOR_HWCAPS_PP_1_4_4; -#endif - ret = spi_nor_scan(nor, NULL, &hwcaps); if (ret) return ret; diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 073769c478..6f7db77921 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3416,13 +3416,6 @@ int bsp_spi_nor_resume(struct spi_nor *nor) #endif SNOR_HWCAPS_PP, }; -#ifndef CONFIG_CLOSE_SPI_8PIN_4IO - hwcaps.mask |= SNOR_HWCAPS_READ_1_1_4 | - SNOR_HWCAPS_READ_1_4_4 | - SNOR_HWCAPS_PP_1_1_4 | - SNOR_HWCAPS_PP_1_4_4; -#endif - if (!info) info = spi_nor_read_id(nor);