diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2016-12-05 16:14:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-26 02:24:39 -0500 |
commit | 001ed27d088a4f66de05d440a2e7c8dd018be457 (patch) | |
tree | 74f360e8c8d3b68624cd20a43cda1851ee04a3a6 | |
parent | c8dce6e0ef2c3641be81639fbfe4f10b6d411c41 (diff) |
mtd: nand: xway: fix build because of module functions
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 <boris.brezillon@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/mtd/nand/xway_nand.c | 5 |
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[] = { | |||
232 | { .compatible = "lantiq,nand-xway" }, | 232 | { .compatible = "lantiq,nand-xway" }, |
233 | {}, | 233 | {}, |
234 | }; | 234 | }; |
235 | MODULE_DEVICE_TABLE(of, xway_nand_match); | ||
236 | 235 | ||
237 | static struct platform_driver xway_nand_driver = { | 236 | static struct platform_driver xway_nand_driver = { |
238 | .probe = xway_nand_probe, | 237 | .probe = xway_nand_probe, |
@@ -243,6 +242,4 @@ static struct platform_driver xway_nand_driver = { | |||
243 | }, | 242 | }, |
244 | }; | 243 | }; |
245 | 244 | ||
246 | module_platform_driver(xway_nand_driver); | 245 | builtin_platform_driver(xway_nand_driver); |
247 | |||
248 | MODULE_LICENSE("GPL"); | ||