Patchwork mtd: gpio-nand: fix build breakage for !CONFIG_OF

login
register
mail settings
Submitter Jamie Iles
Date Dec. 28, 2011, 11:18 a.m.
Message ID <1325071137-4063-1-git-send-email-jamie@jamieiles.com>
Download mbox | patch
Permalink /patch/133422/
State New
Headers show

Comments

Jamie Iles - Dec. 28, 2011, 11:18 a.m.
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@gmail.com>
Signed-off-by: Jamie Iles <jamie@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(-)
Artem Bityutskiy - Dec. 28, 2011, 11:30 a.m.
On Wed, 2011-12-28 at 11:18 +0000, Jamie Iles wrote:
> 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@gmail.com>
> Signed-off-by: Jamie Iles <jamie@jamieiles.com>

I've rolled this into your device tree support patch, thanks!

Patch

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 */