diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 01:44:52 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-24 05:45:18 -0500 |
commit | fb80297e4379640653b525e897b65b0b05a5b845 (patch) | |
tree | ccc1a3c221fc73bb6c724771f9d42e7a92d5e12a /sound/soc/blackfin/bf5xx-i2s.c | |
parent | 85aa0960d8ef22edbb092446559b3b700a5512ef (diff) |
ASoC: Convert blackfin directory to module_platform_driver
Factor out some boilerplate code.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/blackfin/bf5xx-i2s.c')
-rw-r--r-- | sound/soc/blackfin/bf5xx-i2s.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/blackfin/bf5xx-i2s.c b/sound/soc/blackfin/bf5xx-i2s.c index b31662e3a428..4dccf0374fe7 100644 --- a/sound/soc/blackfin/bf5xx-i2s.c +++ b/sound/soc/blackfin/bf5xx-i2s.c | |||
@@ -288,18 +288,7 @@ static struct platform_driver bfin_i2s_driver = { | |||
288 | }, | 288 | }, |
289 | }; | 289 | }; |
290 | 290 | ||
291 | static int __init bfin_i2s_init(void) | 291 | module_platform_driver(bfin_i2s_driver); |
292 | { | ||
293 | return platform_driver_register(&bfin_i2s_driver); | ||
294 | } | ||
295 | |||
296 | static void __exit bfin_i2s_exit(void) | ||
297 | { | ||
298 | platform_driver_unregister(&bfin_i2s_driver); | ||
299 | } | ||
300 | |||
301 | module_init(bfin_i2s_init); | ||
302 | module_exit(bfin_i2s_exit); | ||
303 | 292 | ||
304 | /* Module information */ | 293 | /* Module information */ |
305 | MODULE_AUTHOR("Cliff Cai"); | 294 | MODULE_AUTHOR("Cliff Cai"); |