public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] mfd: syscon: Removed support for unloading
@ 2013-02-11 18:42 Alexander Shiyan
  2013-02-11 18:42 ` [PATCH v2 2/3] mfd: syscon: Removed unneeded field "dev" from private driver structure Alexander Shiyan
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Alexander Shiyan @ 2013-02-11 18:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: Dong Aisheng, Samuel Ortiz, Mark Brown, Arnd Bergmann,
	Alexander Shiyan

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@mail.ru>
---
 drivers/mfd/syscon.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 3f10591..e1886fb 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -138,17 +138,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",
@@ -156,7 +145,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)
@@ -165,12 +153,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@linaro.org>");
 MODULE_DESCRIPTION("System Control driver");
 MODULE_LICENSE("GPL v2");
-- 
1.7.12.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-02-17  2:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-11 18:42 [PATCH v2 1/3] mfd: syscon: Removed support for unloading Alexander Shiyan
2013-02-11 18:42 ` [PATCH v2 2/3] mfd: syscon: Removed unneeded field "dev" from private driver structure Alexander Shiyan
2013-02-17  2:57   ` Dong Aisheng
2013-02-11 18:42 ` [PATCH v2 3/3] mfd: syscon: Add non-DT support Alexander Shiyan
2013-02-11 20:05 ` [PATCH v2 1/3] mfd: syscon: Removed support for unloading Arnd Bergmann
2013-02-12  6:35   ` Re[2]: " Alexander Shiyan
2013-02-12 11:38     ` Arnd Bergmann
2013-02-17  2:42 ` Dong Aisheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox