diff options
author | Mark Brown <broonie@linaro.org> | 2013-06-26 06:30:37 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-27 04:44:04 -0400 |
commit | d8b51c11ff5a70244753ba60abfd47088cf4dcd4 (patch) | |
tree | 08985ecfe9a3903a2decf56a99ed1c2a50ec1489 /sound/soc/au1x | |
parent | 2105d63e09ebb8273cb09e70b8241c9f89aae544 (diff) |
ASoC: ac97c: Use module_platform_driver()
Acked-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/au1x')
-rw-r--r-- | sound/soc/au1x/ac97c.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sound/soc/au1x/ac97c.c b/sound/soc/au1x/ac97c.c index 44b8dcecf571..a51dabe20cbb 100644 --- a/sound/soc/au1x/ac97c.c +++ b/sound/soc/au1x/ac97c.c | |||
@@ -338,19 +338,7 @@ static struct platform_driver au1xac97c_driver = { | |||
338 | .remove = au1xac97c_drvremove, | 338 | .remove = au1xac97c_drvremove, |
339 | }; | 339 | }; |
340 | 340 | ||
341 | static int __init au1xac97c_load(void) | 341 | module_platform_driver(&au1xac97c_driver); |
342 | { | ||
343 | ac97c_workdata = NULL; | ||
344 | return platform_driver_register(&au1xac97c_driver); | ||
345 | } | ||
346 | |||
347 | static void __exit au1xac97c_unload(void) | ||
348 | { | ||
349 | platform_driver_unregister(&au1xac97c_driver); | ||
350 | } | ||
351 | |||
352 | module_init(au1xac97c_load); | ||
353 | module_exit(au1xac97c_unload); | ||
354 | 342 | ||
355 | MODULE_LICENSE("GPL"); | 343 | MODULE_LICENSE("GPL"); |
356 | MODULE_DESCRIPTION("Au1000/1500/1100 AC97C ASoC driver"); | 344 | MODULE_DESCRIPTION("Au1000/1500/1100 AC97C ASoC driver"); |