From: Sascha Hauer Date: Mon, 12 Aug 2013 10:22:26 +0000 (+0200) Subject: mtd: m25p80: remove unnecessary ifdef X-Git-Tag: v3.12-rc1~82^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f229fb8566dd58004a84e2644c1f88ebe71bb88;p=kernel%2Fkernel-generic.git 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 Acked-by: Marek Vasut Signed-off-by: Artem Bityutskiy Signed-off-by: Brian Norris Signed-off-by: David Woodhouse --- 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;