mtd: nand: xway: fix build because of module functions

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jan 5 10:59:01 PST 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a2724663494f7313f53da10d8c0a729c5e3c4dea
Commit:     a2724663494f7313f53da10d8c0a729c5e3c4dea
Parent:     73529c872a189c747bdb528ce9b85b67b0e28dec
Author:     Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Mon Dec 5 22:14:37 2016 +0100
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Mon Jan 2 09:44:21 2017 +0100

    mtd: nand: xway: fix build because of module functions
    
    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")
    Cc: <stable at vger.kernel.org>
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/nand/xway_nand.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/mtd/nand/xway_nand.c b/drivers/mtd/nand/xway_nand.c
index 1f2948c..895101a 100644
--- 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_nand_match[] = {
 	{ .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_driver = {
 	},
 };
 
-module_platform_driver(xway_nand_driver);
-
-MODULE_LICENSE("GPL");
+builtin_platform_driver(xway_nand_driver);



More information about the linux-mtd-cvs mailing list