summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-3.2/0045-MTD-MIPS-lantiq-use-module_platform_driver-inside-la.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-04-12 12:33:56 +0000
committerJohn Crispin <john@openwrt.org>2012-04-12 12:33:56 +0000
commite3889bcf7c8ad2eff0eaeb62dbc4c0977a972788 (patch)
treec69a83b322c88d9516c9022635a80d5803ac83c3 /target/linux/lantiq/patches-3.2/0045-MTD-MIPS-lantiq-use-module_platform_driver-inside-la.patch
parent1b7578845130f5ea6f4096f62bfe0f49a7315d4f (diff)
downloadmaster-31e0f0ae-e3889bcf7c8ad2eff0eaeb62dbc4c0977a972788.tar.gz
master-31e0f0ae-e3889bcf7c8ad2eff0eaeb62dbc4c0977a972788.tar.bz2
master-31e0f0ae-e3889bcf7c8ad2eff0eaeb62dbc4c0977a972788.zip
update 3.2 patches
sync with lantiq kernel series SVN-Revision: 31260
Diffstat (limited to 'target/linux/lantiq/patches-3.2/0045-MTD-MIPS-lantiq-use-module_platform_driver-inside-la.patch')
-rw-r--r--target/linux/lantiq/patches-3.2/0045-MTD-MIPS-lantiq-use-module_platform_driver-inside-la.patch59
1 files changed, 0 insertions, 59 deletions
diff --git a/target/linux/lantiq/patches-3.2/0045-MTD-MIPS-lantiq-use-module_platform_driver-inside-la.patch b/target/linux/lantiq/patches-3.2/0045-MTD-MIPS-lantiq-use-module_platform_driver-inside-la.patch
deleted file mode 100644
index b7ddea6b7d..0000000000
--- a/target/linux/lantiq/patches-3.2/0045-MTD-MIPS-lantiq-use-module_platform_driver-inside-la.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From f94454615da63008ac865e6a7b03bbe79041e8c2 Mon Sep 17 00:00:00 2001
-From: John Crispin <blogic@openwrt.org>
-Date: Mon, 20 Feb 2012 12:15:25 +0100
-Subject: [PATCH 45/70] MTD: MIPS: lantiq: use module_platform_driver inside
- lantiq map driver
-
-Reduce boilerplate code by converting driver to module_platform_driver.
-
-Signed-off-by: John Crispin <blogic@openwrt.org>
-Cc: linux-mtd@lists.infradead.org
----
- drivers/mtd/maps/lantiq-flash.c | 22 +++-------------------
- 1 files changed, 3 insertions(+), 19 deletions(-)
-
---- a/drivers/mtd/maps/lantiq-flash.c
-+++ b/drivers/mtd/maps/lantiq-flash.c
-@@ -108,7 +108,7 @@ ltq_copy_to(struct map_info *map, unsign
- spin_unlock_irqrestore(&ebu_lock, flags);
- }
-
--static int __init
-+static int __devinit
- ltq_mtd_probe(struct platform_device *pdev)
- {
- struct physmap_flash_data *ltq_mtd_data = dev_get_platdata(&pdev->dev);
-@@ -208,6 +208,7 @@ ltq_mtd_remove(struct platform_device *p
- }
-
- static struct platform_driver ltq_mtd_driver = {
-+ .probe = ltq_mtd_probe,
- .remove = __devexit_p(ltq_mtd_remove),
- .driver = {
- .name = "ltq_nor",
-@@ -215,24 +216,7 @@ static struct platform_driver ltq_mtd_dr
- },
- };
-
--static int __init
--init_ltq_mtd(void)
--{
-- int ret = platform_driver_probe(&ltq_mtd_driver, ltq_mtd_probe);
--
-- if (ret)
-- pr_err("ltq_nor: error registering platform driver");
-- return ret;
--}
--
--static void __exit
--exit_ltq_mtd(void)
--{
-- platform_driver_unregister(&ltq_mtd_driver);
--}
--
--module_init(init_ltq_mtd);
--module_exit(exit_ltq_mtd);
-+module_platform_driver(ltq_mtd_driver);
-
- MODULE_LICENSE("GPL");
- MODULE_AUTHOR("John Crispin <blogic@openwrt.org>");