mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
mtd: davinci_nand: fix modular build with CONFIG_OF=y
Commit cdeadd712f (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 <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Cc: [email protected] # 3.7
This commit is contained in:
parent
5a40b5fb2b
commit
7a9c838887
1 changed files with 1 additions and 1 deletions
|
|
@ -523,7 +523,7 @@ static struct nand_ecclayout hwecc4_2048 __initconst = {
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue