Skip to contentSkip to conversation

davinci_nand: fix compilation with CONFIG_OF=y

PATCH Superseded Sergei Shtylyov 2 participants 2 messages Jan 2, 2013 – Jan 15, 2013

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 davinci_nand: fix compilation with CONFIG_OF=y

Commit cdeadd712f52b16a9285386d61ee26fd14eb4085 (mtd: nand: davinci: add OF support for davinci nand controller) obviously has never been really build tested with CONFIG_OF=y. Now it prevents DaVinci family kernels from building:
all due to stupidly missing semicolon after a structure initializer...

---
Sekhar, have you build tested at least 3.8-rc1?

 drivers/mtd/nand/davinci_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/davinci_nand.c +1 -1
Index: linux/drivers/mtd/nand/davinci_nand.c
===================================================================
@@ -523,7 +523,7 @@ static struct nand_ecclayout hwecc4_2048
 static const struct of_device_id davinci_nand_of_match[] = {
 	{.compatible = "ti,davinci-nand", },
 	{},
-}
+};
 MODULE_DEVICE_TABLE(of, davinci_nand_of_match);
 
 static struct davinci_nand_pdata
#1 lore raw
Quoted 7 lines · Sergei Shtylyov

Commit cdeadd712f52b16a9285386d61ee26fd14eb4085 (mtd: nand: davinci: add OF support for davinci nand controller) obviously has never been really build tested with CONFIG_OF=y. Now it prevents DaVinci family kernels from building:
all due to stupidly missing semicolon after a structure initializer...

This patch is currently sitting in the mtd tree, and I believe will be merged to 3.8.

Signature · 2 lines
Best Regards,
Artem Bityutskiy