diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 23:48:28 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-05 12:08:45 -0400 |
commit | 3de764d4aa40109806cf7f9a9d811b970ff49374 (patch) | |
tree | 998fd871ba4b82abcbd2883c601e4be7b13ee14b /drivers/mfd/davinci_voicecodec.c | |
parent | e8fe6a827939cf723a3871ff455f6346337c649a (diff) |
mfd: davinci_voicecodec: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/davinci_voicecodec.c')
-rw-r--r-- | drivers/mfd/davinci_voicecodec.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mfd/davinci_voicecodec.c b/drivers/mfd/davinci_voicecodec.c index c0bcc872af4e..c60ab0c3c4db 100644 --- a/drivers/mfd/davinci_voicecodec.c +++ b/drivers/mfd/davinci_voicecodec.c | |||
@@ -177,17 +177,7 @@ static struct platform_driver davinci_vc_driver = { | |||
177 | .remove = davinci_vc_remove, | 177 | .remove = davinci_vc_remove, |
178 | }; | 178 | }; |
179 | 179 | ||
180 | static int __init davinci_vc_init(void) | 180 | module_platform_driver_probe(davinci_vc_driver, davinci_vc_probe); |
181 | { | ||
182 | return platform_driver_probe(&davinci_vc_driver, davinci_vc_probe); | ||
183 | } | ||
184 | module_init(davinci_vc_init); | ||
185 | |||
186 | static void __exit davinci_vc_exit(void) | ||
187 | { | ||
188 | platform_driver_unregister(&davinci_vc_driver); | ||
189 | } | ||
190 | module_exit(davinci_vc_exit); | ||
191 | 181 | ||
192 | MODULE_AUTHOR("Miguel Aguilar"); | 182 | MODULE_AUTHOR("Miguel Aguilar"); |
193 | MODULE_DESCRIPTION("Texas Instruments DaVinci Voice Codec Core Interface"); | 183 | MODULE_DESCRIPTION("Texas Instruments DaVinci Voice Codec Core Interface"); |