From 8b6aa226df7ec0ea796764cb626941d466709f90 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 28 Nov 2011 18:55:03 +0800 Subject: [PATCH] --- yaml --- r: 283811 b: refs/heads/master c: af3c2621a9b4d22b8927b91bc9cc02a13087e12b h: refs/heads/master i: 283809: 2d884f2f777215a59fe5bbb624e45558a4d79be9 283807: 21e7b59ed605b5249e0b3e0690e96969b6d6cc4f v: v3 --- [refs] | 2 +- trunk/sound/soc/tegra/tegra_spdif.c | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/[refs] b/[refs] index 70ef93896bca..d9466f3d02fc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0a590b1de28813c81effa2c291f24ef1f47444e9 +refs/heads/master: af3c2621a9b4d22b8927b91bc9cc02a13087e12b diff --git a/trunk/sound/soc/tegra/tegra_spdif.c b/trunk/sound/soc/tegra/tegra_spdif.c index ea9c92036aa1..475428cf270e 100644 --- a/trunk/sound/soc/tegra/tegra_spdif.c +++ b/trunk/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");