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

Boris Brezillon boris.brezillon at free-electrons.com
Thu Dec 1 02:35:27 PST 2016


On Wed, 30 Nov 2016 23:51:10 +0100
Hauke Mehrtens <hauke at 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 at hauke-m.de>

Fixes: 024366750c2e ("mtd: nand: xway: convert to normal platform driver")
Cc: <stable at vger.kernel.org>
Acked-by: Boris Brezillon <boris.brezillon at 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>
>  




More information about the linux-mtd mailing list