Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1175f711 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: Convert smdk_wm8994pcm to use module_platform_driver()



Use the module_platform_driver() macro which makes
the code smaller and a bit simpler.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent fd8f2e49
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -158,19 +158,7 @@ static struct platform_driver snd_smdk_driver = {
	.remove = __devexit_p(snd_smdk_remove),
};

static int __init smdk_audio_init(void)
{
	return platform_driver_register(&snd_smdk_driver);
}

module_init(smdk_audio_init);

static void __exit smdk_audio_exit(void)
{
	platform_driver_unregister(&snd_smdk_driver);
}

module_exit(smdk_audio_exit);
module_platform_driver(snd_smdk_driver);

MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>");
MODULE_DESCRIPTION("ALSA SoC SMDK WM8994 for PCM");