aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-28 05:55:03 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-28 17:12:15 -0500
commitaf3c2621a9b4d22b8927b91bc9cc02a13087e12b (patch)
tree4db34f360ed42ad642392eaf0691d3e4905b7633 /sound/soc/tegra
parent0a590b1de28813c81effa2c291f24ef1f47444e9 (diff)
ASoC: Convert tegra_spdif to use module_platform_driver()
Use the module_platform_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r--sound/soc/tegra/tegra_spdif.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/tegra/tegra_spdif.c b/sound/soc/tegra/tegra_spdif.c
index ea9c92036aa1..475428cf270e 100644
--- a/sound/soc/tegra/tegra_spdif.c
+++ b/sound/soc/tegra/tegra_spdif.c
@@ -352,17 +352,7 @@ static struct platform_driver tegra_spdif_driver = {
352 .remove = __devexit_p(tegra_spdif_platform_remove), 352 .remove = __devexit_p(tegra_spdif_platform_remove),
353}; 353};
354 354
355static int __init snd_tegra_spdif_init(void) 355module_platform_driver(tegra_spdif_driver);
356{
357 return platform_driver_register(&tegra_spdif_driver);
358}
359module_init(snd_tegra_spdif_init);
360
361static void __exit snd_tegra_spdif_exit(void)
362{
363 platform_driver_unregister(&tegra_spdif_driver);
364}
365module_exit(snd_tegra_spdif_exit);
366 356
367MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); 357MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
368MODULE_DESCRIPTION("Tegra SPDIF ASoC driver"); 358MODULE_DESCRIPTION("Tegra SPDIF ASoC driver");