mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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: 024366750c ("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]>
This commit is contained in:
parent
73529c872a
commit
a272466349
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue