X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=drivers%2Fmtd%2Fspi%2Fsf_probe.c;fp=drivers%2Fmtd%2Fspi%2Fsf_probe.c;h=d8ab6a1eccd64ee698b7eee5a3193d226ab0bdbb;hp=de8d0b7f7cbdf786f50c1ca37189a9b0edc78be1;hb=4ce7fe4dcaa41174617fcb0d563fab03ccd64fe8;hpb=0003fd65d0e5104c1fd57df7e146c3b23c44eab2 diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index de8d0b7f7c..d8ab6a1ecc 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/drivers/mtd/spi/sf_probe.c @@ -132,6 +132,9 @@ static int spi_flash_validate_params(struct spi_slave *spi, u8 *idcode, flash->name = params->name; flash->memory_map = spi->memory_map; flash->dual_flash = flash->spi->option; +#ifdef CONFIG_DM_SPI_FLASH + flash->flags = params->flags; +#endif /* Assign spi_flash ops */ #ifndef CONFIG_DM_SPI_FLASH