[PATCH] mtd: gpio-nand: fix build breakage for !CONFIG_OF

Jamie Iles jamie at jamieiles.com
Wed Dec 28 06:18:57 EST 2011


Whilst adding support for device tree probing I dropped a semicolon
resulting in:

drivers/mtd/nand/gpio.c: In function 'gpio_nand_get_io_sync_of':
drivers/mtd/nand/gpio.c:237:1: error: expected ';' before '}' token

Cc: Artem Bityutskiy <dedekind1 at gmail.com>
Signed-off-by: Jamie Iles <jamie at jamieiles.com>
---

This appeared to get lost in my mail system, so resending to be sure!

 drivers/mtd/nand/gpio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c
index d4b5609..27000a5 100644
--- a/drivers/mtd/nand/gpio.c
+++ b/drivers/mtd/nand/gpio.c
@@ -233,7 +233,7 @@ static inline int gpio_nand_get_config_of(const struct device *dev,
 static inline struct resource *
 gpio_nand_get_io_sync_of(struct platform_device *pdev)
 {
-	return NULL
+	return NULL;
 }
 #endif /* CONFIG_OF */
 
-- 
1.7.5.4




More information about the linux-mtd mailing list