diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-10 14:40:19 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-12-13 00:50:57 -0500 |
commit | 4452fec6af8d5ed1dc3ac37f31d7da1bd62733b8 (patch) | |
tree | b985253c32cca596683934c2ff5614d668653fd0 /arch/blackfin/mach-common/dpmc.c | |
parent | 00e9584c765043d6f4385244f03eed0e7fe18287 (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/mach-common/dpmc.c')
-rw-r--r-- | arch/blackfin/mach-common/dpmc.c | 19 |
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 | 160 | module_platform_driver(bfin_dpmc_device_driver); | |
161 | /** | ||
162 | * bfin_dpmc_init - Init driver | ||
163 | */ | ||
164 | static int __init bfin_dpmc_init(void) | ||
165 | { | ||
166 | return platform_driver_register(&bfin_dpmc_device_driver); | ||
167 | } | ||
168 | module_init(bfin_dpmc_init); | ||
169 | |||
170 | /** | ||
171 | * bfin_dpmc_exit - break down driver | ||
172 | */ | ||
173 | static void __exit bfin_dpmc_exit(void) | ||
174 | { | ||
175 | platform_driver_unregister(&bfin_dpmc_device_driver); | ||
176 | } | ||
177 | module_exit(bfin_dpmc_exit); | ||
178 | 161 | ||
179 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 162 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
180 | MODULE_DESCRIPTION("cpu power management driver for Blackfin"); | 163 | MODULE_DESCRIPTION("cpu power management driver for Blackfin"); |