diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 10:20:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 08:03:03 -0500 |
commit | e00c3f555f1f404b38d44bcfe19db674a92c809a (patch) | |
tree | be5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung/idma.c | |
parent | 29515d62db425796d82e2e2d9209a44b9e324ff4 (diff) |
ASoC: Convert Samsung directory to module_platform_driver
Saves some boilerplate code.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Diffstat (limited to 'sound/soc/samsung/idma.c')
-rw-r--r-- | sound/soc/samsung/idma.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/samsung/idma.c b/sound/soc/samsung/idma.c index c41178efc908..6ca3d8c221a0 100644 --- a/sound/soc/samsung/idma.c +++ b/sound/soc/samsung/idma.c | |||
@@ -437,17 +437,7 @@ static struct platform_driver asoc_idma_driver = { | |||
437 | .remove = __devexit_p(asoc_idma_platform_remove), | 437 | .remove = __devexit_p(asoc_idma_platform_remove), |
438 | }; | 438 | }; |
439 | 439 | ||
440 | static int __init asoc_idma_init(void) | 440 | module_platform_driver(asoc_idma_driver); |
441 | { | ||
442 | return platform_driver_register(&asoc_idma_driver); | ||
443 | } | ||
444 | module_init(asoc_idma_init); | ||
445 | |||
446 | static void __exit asoc_idma_exit(void) | ||
447 | { | ||
448 | platform_driver_unregister(&asoc_idma_driver); | ||
449 | } | ||
450 | module_exit(asoc_idma_exit); | ||
451 | 441 | ||
452 | MODULE_AUTHOR("Jaswinder Singh, <jassisinghbrar@gmail.com>"); | 442 | MODULE_AUTHOR("Jaswinder Singh, <jassisinghbrar@gmail.com>"); |
453 | MODULE_DESCRIPTION("Samsung ASoC IDMA Driver"); | 443 | MODULE_DESCRIPTION("Samsung ASoC IDMA Driver"); |