summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-12-05 22:14:37 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-01-02 09:44:21 +0100
commita2724663494f7313f53da10d8c0a729c5e3c4dea (patch)
treee0a8acc302abd4a15d666aa0fe9996270213e120 /drivers/mtd/nand
parent73529c872a189c747bdb528ce9b85b67b0e28dec (diff)
downloadlinux-a2724663494f7313f53da10d8c0a729c5e3c4dea.tar.bz2
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@vger.kernel.org> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/xway_nand.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mtd/nand/xway_nand.c b/drivers/mtd/nand/xway_nand.c
index 1f2948c0c458..895101a5e686 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);