Skip to content

flash: spi_nor: build fails when CONFIG_SPI_NOR_SFDP_RUNTIME is enabled #34716

@simonguinot

Description

@simonguinot

The spi_nor driver fails to build when the CONFIG_SPI_NOR_SFDP_RUNTIME option is enabled.

Here is the build error message:

drivers/flash/spi_nor.c: In function 'spi_nor_configure':
drivers/flash/spi_nor.c:1071:6: error: 'cfg' undeclared (first use in this function)
  if (cfg->has_lock != 0) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug, or the PR is fixing a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions