Skip to content

Commit

Permalink
ASoC: Convert smdk_wm8994pcm to use module_platform_driver()
Browse files Browse the repository at this point in the history
Use the module_platform_driver() macro which makes
the code smaller and a bit simpler.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Nov 29, 2011
1 parent fd8f2e4 commit 1175f71
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions sound/soc/samsung/smdk_wm8994pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1175f71

Please sign in to comment.