From: Axel Lin Date: Mon, 28 Nov 2011 10:55:03 +0000 (+0800) Subject: ASoC: Convert tegra_spdif to use module_platform_driver() X-Git-Tag: accepted/tizen/common/20141203.182822~4454^2~370 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af3c2621a9b4d22b8927b91bc9cc02a13087e12b;p=platform%2Fkernel%2Flinux-arm64.git 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 Acked-by: Stephen Warren Signed-off-by: Mark Brown --- diff --git a/sound/soc/tegra/tegra_spdif.c b/sound/soc/tegra/tegra_spdif.c index ea9c920..475428c 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 = { .remove = __devexit_p(tegra_spdif_platform_remove), }; -static int __init snd_tegra_spdif_init(void) -{ - return platform_driver_register(&tegra_spdif_driver); -} -module_init(snd_tegra_spdif_init); - -static void __exit snd_tegra_spdif_exit(void) -{ - platform_driver_unregister(&tegra_spdif_driver); -} -module_exit(snd_tegra_spdif_exit); +module_platform_driver(tegra_spdif_driver); MODULE_AUTHOR("Stephen Warren "); MODULE_DESCRIPTION("Tegra SPDIF ASoC driver");