Patch "mtd: nand: xway: fix build because of module functions" has been added to the 4.9-stable tree
From: <gregkh@linuxfoundation.org>
Date: 2017-01-23 14:36:50
This is a note to let you know that I've just added the patch titled
mtd: nand: xway: fix build because of module functions
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mtd-nand-xway-fix-build-because-of-module-functions.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let [off-list ref] know about it.
From a2724663494f7313f53da10d8c0a729c5e3c4dea Mon Sep 17 00:00:00 2001
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: Mon, 5 Dec 2016 22:14:37 +0100
Subject: mtd: nand: xway: fix build because of module functions
From: Hauke Mehrtens <hauke@hauke-m.de>
commit a2724663494f7313f53da10d8c0a729c5e3c4dea upstream.
Remove the usage of modules functions to make this driver compile
again. Otherwise an include of linux/modules.h would be needed.
Fixes: 024366750c2e ("mtd: nand: xway: convert to normal platform driver")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Boris Brezillon <redacted>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/mtd/nand/xway_nand.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--- a/drivers/mtd/nand/xway_nand.c
+++ b/drivers/mtd/nand/xway_nand.c@@ -232,7 +232,6 @@ static const struct of_device_id xway_na { .compatible = "lantiq,nand-xway" }, {}, }; -MODULE_DEVICE_TABLE(of, xway_nand_match); static struct platform_driver xway_nand_driver = { .probe = xway_nand_probe,
@@ -243,6 +242,4 @@ static struct platform_driver xway_nand_ }, }; -module_platform_driver(xway_nand_driver); - -MODULE_LICENSE("GPL"); +builtin_platform_driver(xway_nand_driver);
Patches currently in stable-queue which might be from hauke@hauke-m.de are queue-4.9/mtd-nand-xway-disable-module-support.patch queue-4.9/mtd-nand-xway-fix-build-because-of-module-functions.patch