diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-05 13:48:28 +0900 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-05 18:08:45 +0200 |
commit | 3de764d4aa40109806cf7f9a9d811b970ff49374 (patch) | |
tree | 998fd871ba4b82abcbd2883c601e4be7b13ee14b /drivers/mfd | |
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')
-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 = { .remove = davinci_vc_remove, }; -static int __init davinci_vc_init(void) -{ - return platform_driver_probe(&davinci_vc_driver, davinci_vc_probe); -} -module_init(davinci_vc_init); - -static void __exit davinci_vc_exit(void) -{ - platform_driver_unregister(&davinci_vc_driver); -} -module_exit(davinci_vc_exit); +module_platform_driver_probe(davinci_vc_driver, davinci_vc_probe); MODULE_AUTHOR("Miguel Aguilar"); MODULE_DESCRIPTION("Texas Instruments DaVinci Voice Codec Core Interface"); |