[PATCH] mtd: nand: xway: fix build undefined MODULE_DEVICE_TABLE()

Hauke Mehrtens
2016-11-30T22:51:53Z

The header file with the definition of MODULE_DEVICE_TABLE() was
missing, add include for linux/module.h to fix the problem in 4.9.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
drivers/mtd/nand/xway_nand.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/xway_nand.c b/drivers/mtd/nand/xway_nand.c
index 1f2948c..bcbc1c7 100644
--- a/drivers/mtd/nand/xway_nand.c
+++ b/drivers/mtd/nand/xway_nand.c
@@ -8,6 +8,7 @@
*/

#include <linux/mtd/nand.h>
+#include <linux/module.h>
#include <linux/of_gpio.h>
#include <linux/of_platform.h>

--
2.10.2