[PATCH v5 1/3] mfd: syscon: Removed support for unloading

From: Alexander Shiyan
Date: Sat Feb 23 2013 - 00:16:12 EST


The driver can be used in various subsystems and therefore should not
be unloaded when it is defined in the kernel configuration, so remove
support for unloading it.

Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx>
---
drivers/mfd/syscon.c | 18 ------------------
1 file changed, 18 deletions(-)

diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 61aea63..55d7915 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -139,17 +139,6 @@ static int syscon_probe(struct platform_device *pdev)
return 0;
}

-static int syscon_remove(struct platform_device *pdev)
-{
- struct syscon *syscon;
-
- syscon = platform_get_drvdata(pdev);
- iounmap(syscon->base);
- platform_set_drvdata(pdev, NULL);
-
- return 0;
-}
-
static struct platform_driver syscon_driver = {
.driver = {
.name = "syscon",
@@ -157,7 +146,6 @@ static struct platform_driver syscon_driver = {
.of_match_table = of_syscon_match,
},
.probe = syscon_probe,
- .remove = syscon_remove,
};

static int __init syscon_init(void)
@@ -166,12 +154,6 @@ static int __init syscon_init(void)
}
postcore_initcall(syscon_init);

-static void __exit syscon_exit(void)
-{
- platform_driver_unregister(&syscon_driver);
-}
-module_exit(syscon_exit);
-
MODULE_AUTHOR("Dong Aisheng <dong.aisheng@xxxxxxxxxx>");
MODULE_DESCRIPTION("System Control driver");
MODULE_LICENSE("GPL v2");
--
1.7.12.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/