diff options
| -rw-r--r-- | sound/soc/codecs/tlv320aic23.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c index 31762ebdd774..32994597a43f 100644 --- a/sound/soc/codecs/tlv320aic23.c +++ b/sound/soc/codecs/tlv320aic23.c | |||
| @@ -613,7 +613,6 @@ static struct snd_soc_codec_driver soc_codec_dev_tlv320aic23 = { | |||
| 613 | .num_dapm_routes = ARRAY_SIZE(tlv320aic23_intercon), | 613 | .num_dapm_routes = ARRAY_SIZE(tlv320aic23_intercon), |
| 614 | }; | 614 | }; |
| 615 | 615 | ||
| 616 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | ||
| 617 | /* | 616 | /* |
| 618 | * If the i2c layer weren't so broken, we could pass this kind of data | 617 | * If the i2c layer weren't so broken, we could pass this kind of data |
| 619 | * around | 618 | * around |
| @@ -660,29 +659,7 @@ static struct i2c_driver tlv320aic23_i2c_driver = { | |||
| 660 | .id_table = tlv320aic23_id, | 659 | .id_table = tlv320aic23_id, |
| 661 | }; | 660 | }; |
| 662 | 661 | ||
| 663 | #endif | 662 | module_i2c_driver(tlv320aic23_i2c_driver); |
| 664 | |||
| 665 | static int __init tlv320aic23_modinit(void) | ||
| 666 | { | ||
| 667 | int ret; | ||
| 668 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | ||
| 669 | ret = i2c_add_driver(&tlv320aic23_i2c_driver); | ||
| 670 | if (ret != 0) { | ||
| 671 | printk(KERN_ERR "Failed to register TLV320AIC23 I2C driver: %d\n", | ||
| 672 | ret); | ||
| 673 | } | ||
| 674 | #endif | ||
| 675 | return ret; | ||
| 676 | } | ||
| 677 | module_init(tlv320aic23_modinit); | ||
| 678 | |||
| 679 | static void __exit tlv320aic23_exit(void) | ||
| 680 | { | ||
| 681 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | ||
| 682 | i2c_del_driver(&tlv320aic23_i2c_driver); | ||
| 683 | #endif | ||
| 684 | } | ||
| 685 | module_exit(tlv320aic23_exit); | ||
| 686 | 663 | ||
| 687 | MODULE_DESCRIPTION("ASoC TLV320AIC23 codec driver"); | 664 | MODULE_DESCRIPTION("ASoC TLV320AIC23 codec driver"); |
| 688 | MODULE_AUTHOR("Arun KS <arunks@mistralsolutions.com>"); | 665 | MODULE_AUTHOR("Arun KS <arunks@mistralsolutions.com>"); |
