mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 13:46:15 +07:00
mtd: m25p80: remove unnecessary ifdef
of_property_read_bool properly compiles away, no need to ifdef this for non DT builds. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
da887588af
commit
8f229fb856
@ -1038,10 +1038,8 @@ static int m25p_probe(struct spi_device *spi)
|
||||
flash->mtd.writebufsize = flash->page_size;
|
||||
|
||||
flash->fast_read = false;
|
||||
#ifdef CONFIG_OF
|
||||
if (np && of_property_read_bool(np, "m25p,fast-read"))
|
||||
flash->fast_read = true;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_M25PXX_USE_FAST_READ
|
||||
flash->fast_read = true;
|
||||
|
Loading…
Reference in New Issue
Block a user