Commit 001ed27d authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by Greg Kroah-Hartman

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

commit a2724663 upstream.

Remove the usage of modules functions to make this driver compile
again. Otherwise an include of linux/modules.h would be needed.

Fixes: 02436675 ("mtd: nand: xway: convert to normal platform driver")
Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c8dce6e0
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment