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>
This commit is contained in:
Jingoo Han 2013-03-05 13:48:28 +09:00 committed by Samuel Ortiz
parent e8fe6a8279
commit 3de764d4aa
1 changed files with 1 additions and 11 deletions

View File

@ -177,17 +177,7 @@ static struct platform_driver davinci_vc_driver = {
.remove = davinci_vc_remove, .remove = davinci_vc_remove,
}; };
static int __init davinci_vc_init(void) module_platform_driver_probe(davinci_vc_driver, davinci_vc_probe);
{
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_AUTHOR("Miguel Aguilar"); MODULE_AUTHOR("Miguel Aguilar");
MODULE_DESCRIPTION("Texas Instruments DaVinci Voice Codec Core Interface"); MODULE_DESCRIPTION("Texas Instruments DaVinci Voice Codec Core Interface");