Skip to content

Commit

Permalink
ASoC: ac97c: Use module_platform_driver()
Browse files Browse the repository at this point in the history
Acked-by: Manuel Lauss <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed Jun 27, 2013
1 parent 2105d63 commit d8b51c1
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions sound/soc/au1x/ac97c.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,19 +338,7 @@ static struct platform_driver au1xac97c_driver = {
.remove = au1xac97c_drvremove,
};

static int __init au1xac97c_load(void)
{
ac97c_workdata = NULL;
return platform_driver_register(&au1xac97c_driver);
}

static void __exit au1xac97c_unload(void)
{
platform_driver_unregister(&au1xac97c_driver);
}

module_init(au1xac97c_load);
module_exit(au1xac97c_unload);
module_platform_driver(&au1xac97c_driver);

MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Au1000/1500/1100 AC97C ASoC driver");
Expand Down

0 comments on commit d8b51c1

Please sign in to comment.