Skip to contentSkip to conversation

Patch "mtd: nand: xway: fix build because of module functions" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message Jan 23, 2017

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

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

to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
mtd-nand-xway-fix-build-because-of-module-functions.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From a2724663494f7313f53da10d8c0a729c5e3c4dea Mon Sep 17 00:00:00 2001

From: Hauke Mehrtens <[email protected]>
Date: Mon, 5 Dec 2016 22:14:37 +0100
Subject: mtd: nand: xway: fix build because of module functions

From: Hauke Mehrtens <[email protected]>

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")
---
 drivers/mtd/nand/xway_nand.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/mtd/nand/xway_nand.c +1 -4
@@ -232,7 +232,6 @@ static const struct of_device_id xway_na
 	{ .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_
 	},
 };
 
-module_platform_driver(xway_nand_driver);
-
-MODULE_LICENSE("GPL");
+builtin_platform_driver(xway_nand_driver);

Patches currently in stable-queue which might be from [email protected] are

queue-4.9/mtd-nand-xway-disable-module-support.patch queue-4.9/mtd-nand-xway-fix-build-because-of-module-functions.patch