diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-06 07:55:45 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-06 10:20:33 -0400 |
commit | beb22de07e87a2f6802cc0e916b2f5c6aeb3f59f (patch) | |
tree | 5084e8104059207d918edd1e62da019a98210aa8 | |
parent | 63a47a7544c65f0d4ca28f3ffa54468bc5f6cc6c (diff) |
ASoC: adau1701: Use module_i2c_driver
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/adau1701.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c index 3d50fc8646b6..51f2f3cd8136 100644 --- a/sound/soc/codecs/adau1701.c +++ b/sound/soc/codecs/adau1701.c | |||
@@ -527,17 +527,7 @@ static struct i2c_driver adau1701_i2c_driver = { | |||
527 | .id_table = adau1701_i2c_id, | 527 | .id_table = adau1701_i2c_id, |
528 | }; | 528 | }; |
529 | 529 | ||
530 | static int __init adau1701_init(void) | 530 | module_i2c_driver(adau1701_i2c_driver); |
531 | { | ||
532 | return i2c_add_driver(&adau1701_i2c_driver); | ||
533 | } | ||
534 | module_init(adau1701_init); | ||
535 | |||
536 | static void __exit adau1701_exit(void) | ||
537 | { | ||
538 | i2c_del_driver(&adau1701_i2c_driver); | ||
539 | } | ||
540 | module_exit(adau1701_exit); | ||
541 | 531 | ||
542 | MODULE_DESCRIPTION("ASoC ADAU1701 SigmaDSP driver"); | 532 | MODULE_DESCRIPTION("ASoC ADAU1701 SigmaDSP driver"); |
543 | MODULE_AUTHOR("Cliff Cai <cliff.cai@analog.com>"); | 533 | MODULE_AUTHOR("Cliff Cai <cliff.cai@analog.com>"); |