Skip to content

Commit

Permalink
mtd: nand: xway: fix build because of module functions
Browse files Browse the repository at this point in the history
Remove the usage of modules functions to make this driver compile
again. Otherwise an include of linux/modules.h would be needed.

Fixes: 0243667 ("mtd: nand: xway: convert to normal platform driver")
Cc: <[email protected]>
Signed-off-by: Hauke Mehrtens <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
  • Loading branch information
hauke authored and Boris Brezillon committed Jan 2, 2017
1 parent 73529c8 commit a272466
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mtd/nand/xway_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);

0 comments on commit a272466

Please sign in to comment.