summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/pmi.c
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2012-10-10 10:32:30 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-11-15 03:00:05 +0100
commit40c935ae3de413d6bbc5471c231c90e26a63d562 (patch)
treefcfc7b1ef34452cd8ea5438a3ef8c96ddc883d8f /arch/powerpc/sysdev/pmi.c
parentpowerpc/xmon: Fallback to printk() in xmon_printf() if udbg is not setup (diff)
downloadlinux-40c935ae3de413d6bbc5471c231c90e26a63d562.tar.xz
linux-40c935ae3de413d6bbc5471c231c90e26a63d562.zip
powerpc/sysdev: Use module_platform_driver macro
This patch removes some code duplication by using module_platform_driver. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/pmi.c')
-rw-r--r--arch/powerpc/sysdev/pmi.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/powerpc/sysdev/pmi.c b/arch/powerpc/sysdev/pmi.c
index 8f0465422b1e..5aaf86c03893 100644
--- a/arch/powerpc/sysdev/pmi.c
+++ b/arch/powerpc/sysdev/pmi.c
@@ -214,18 +214,7 @@ static struct platform_driver pmi_of_platform_driver = {
.of_match_table = pmi_match,
},
};
-
-static int __init pmi_module_init(void)
-{
- return platform_driver_register(&pmi_of_platform_driver);
-}
-module_init(pmi_module_init);
-
-static void __exit pmi_module_exit(void)
-{
- platform_driver_unregister(&pmi_of_platform_driver);
-}
-module_exit(pmi_module_exit);
+module_platform_driver(pmi_of_platform_driver);
int pmi_send_message(pmi_message_t msg)
{