Skip to content

Commit

Permalink
drivers: flash: Fix FlexSPI NOR log module
Browse files Browse the repository at this point in the history
Fixes the FlexSPI NOR flash driver to register a new log module rather
than declare membership in the FlexSPI controller module, which was
recently moved from drivers/flash to drivers/memc.

This fixes build errors with the mimxrt1064_evk board in:
  - samples/drivers/flash_shell
  - samples/subsys/fs/littlefs

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
  • Loading branch information
MaureenHelm authored and galak committed Apr 6, 2021
1 parent 64995e2 commit 5cc20fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/flash/flash_mcux_flexspi_nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define NOR_WRITE_SIZE 1
#define NOR_ERASE_VALUE 0xff

LOG_MODULE_DECLARE(flash_flexspi, CONFIG_FLASH_LOG_LEVEL);
LOG_MODULE_REGISTER(flash_flexspi_nor, CONFIG_FLASH_LOG_LEVEL);

enum {
/* SPI instructions */
Expand Down

0 comments on commit 5cc20fa

Please sign in to comment.