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

Boris Brezillon
2016-12-01T10:36:21Z

On Wed, 30 Nov 2016 23:51:10 +0100
Hauke Mehrtens <hauke@hauke-m.de> wrote:

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

Fixes: 024366750c2e ("mtd: nand: xway: convert to normal platform driver")
Cc: <stable@vger.kernel.org>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>

Brian, can you take this patch directly in the MTD tree with the
additional Fixes and Cc tags?

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