mtd: m25p80: remove unnecessary ifdef
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Aug 30 16:59:04 EDT 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=8f229fb8566dd58004a84e2644c1f88ebe71bb88
Commit: 8f229fb8566dd58004a84e2644c1f88ebe71bb88
Parent: da887588af616236e55976039debd0a877a4bf92
Author: Sascha Hauer <s.hauer at pengutronix.de>
AuthorDate: Mon Aug 12 12:22:26 2013 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Aug 30 21:42:36 2013 +0100
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 at pengutronix.de>
Acked-by: Marek Vasut <marex at denx.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/devices/m25p80.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index a759c1f..35d5851 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -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;
More information about the linux-mtd-cvs
mailing list