mtd: davinci_nand: fix modular build with CONFIG_OF=y
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 3 Jan 2013 18:27:34 +0000 (21:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Feb 2013 17:04:43 +0000 (09:04 -0800)
commitdcba35ace5cc816fda36a69dbebc3a1565034146
tree84fa395d695a7001729822bba4920a1deaac63b6
parentae893a989ec393419adf53dc96fbef7d0abfb5ca
mtd: davinci_nand: fix modular build with CONFIG_OF=y

commit 7a9c83888761a9a26049b439dc0b09e7ea8a854b upstream.

Commit cdeadd712f52b16a9285386d61ee26fd14eb4085 (mtd: nand: davinci: add OF
support for davinci nand controller) has never been really build tested with
the driver as a module.  When the driver is built-in, the missing semicolon
after structure initializer is "compensated" by MODULE_DEVICE_TABLE() macro
being empty and so the initializer using the trailing semicolon on the next
line; when the driver is built as a module, compilation error ensues, and as
the 'davinci_all_defconfig' has the NAND driver modular, this error prevents
DaVinci family kernel from building...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/davinci_nand.c