aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2012-10-10 14:40:19 -0400
committerBob Liu <lliubbo@gmail.com>2012-12-13 00:50:57 -0500
commit4452fec6af8d5ed1dc3ac37f31d7da1bd62733b8 (patch)
treeb985253c32cca596683934c2ff5614d668653fd0 /arch/blackfin
parent00e9584c765043d6f4385244f03eed0e7fe18287 (diff)
Blackfin: dpmc: 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: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-common/dpmc.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/arch/blackfin/mach-common/dpmc.c b/arch/blackfin/mach-common/dpmc.c
index f5685a496c58..978bb400be06 100644
--- a/arch/blackfin/mach-common/dpmc.c
+++ b/arch/blackfin/mach-common/dpmc.c
@@ -157,24 +157,7 @@ struct platform_driver bfin_dpmc_device_driver = {
157 .name = DRIVER_NAME, 157 .name = DRIVER_NAME,
158 } 158 }
159}; 159};
160 160module_platform_driver(bfin_dpmc_device_driver);
161/**
162 * bfin_dpmc_init - Init driver
163 */
164static int __init bfin_dpmc_init(void)
165{
166 return platform_driver_register(&bfin_dpmc_device_driver);
167}
168module_init(bfin_dpmc_init);
169
170/**
171 * bfin_dpmc_exit - break down driver
172 */
173static void __exit bfin_dpmc_exit(void)
174{
175 platform_driver_unregister(&bfin_dpmc_device_driver);
176}
177module_exit(bfin_dpmc_exit);
178 161
179MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); 162MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
180MODULE_DESCRIPTION("cpu power management driver for Blackfin"); 163MODULE_DESCRIPTION("cpu power management driver for Blackfin");