diff options
-rw-r--r-- | sound/soc/codecs/ak4642.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c index 5af237468618..1f646c6e90c6 100644 --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c | |||
@@ -513,7 +513,6 @@ static const struct regmap_config ak4648_regmap = { | |||
513 | .num_reg_defaults = ARRAY_SIZE(ak4648_reg), | 513 | .num_reg_defaults = ARRAY_SIZE(ak4648_reg), |
514 | }; | 514 | }; |
515 | 515 | ||
516 | #if IS_ENABLED(CONFIG_I2C) | ||
517 | static struct of_device_id ak4642_of_match[]; | 516 | static struct of_device_id ak4642_of_match[]; |
518 | static int ak4642_i2c_probe(struct i2c_client *i2c, | 517 | static int ak4642_i2c_probe(struct i2c_client *i2c, |
519 | const struct i2c_device_id *id) | 518 | const struct i2c_device_id *id) |
@@ -577,27 +576,8 @@ static struct i2c_driver ak4642_i2c_driver = { | |||
577 | .remove = ak4642_i2c_remove, | 576 | .remove = ak4642_i2c_remove, |
578 | .id_table = ak4642_i2c_id, | 577 | .id_table = ak4642_i2c_id, |
579 | }; | 578 | }; |
580 | #endif | ||
581 | 579 | ||
582 | static int __init ak4642_modinit(void) | 580 | module_i2c_driver(ak4642_i2c_driver); |
583 | { | ||
584 | int ret = 0; | ||
585 | #if IS_ENABLED(CONFIG_I2C) | ||
586 | ret = i2c_add_driver(&ak4642_i2c_driver); | ||
587 | #endif | ||
588 | return ret; | ||
589 | |||
590 | } | ||
591 | module_init(ak4642_modinit); | ||
592 | |||
593 | static void __exit ak4642_exit(void) | ||
594 | { | ||
595 | #if IS_ENABLED(CONFIG_I2C) | ||
596 | i2c_del_driver(&ak4642_i2c_driver); | ||
597 | #endif | ||
598 | |||
599 | } | ||
600 | module_exit(ak4642_exit); | ||
601 | 581 | ||
602 | MODULE_DESCRIPTION("Soc AK4642 driver"); | 582 | MODULE_DESCRIPTION("Soc AK4642 driver"); |
603 | MODULE_AUTHOR("Kuninori Morimoto <morimoto.kuninori@renesas.com>"); | 583 | MODULE_AUTHOR("Kuninori Morimoto <morimoto.kuninori@renesas.com>"); |