diff options
-rw-r--r-- | sound/soc/codecs/ak4642.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c index 090d499bb7eb..2f861c9b1d69 100644 --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c | |||
@@ -511,7 +511,7 @@ static struct snd_soc_codec_driver soc_codec_dev_ak4648 = { | |||
511 | .num_dapm_routes = ARRAY_SIZE(ak4642_intercon), | 511 | .num_dapm_routes = ARRAY_SIZE(ak4642_intercon), |
512 | }; | 512 | }; |
513 | 513 | ||
514 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | 514 | #if IS_ENABLED(CONFIG_I2C) |
515 | static struct of_device_id ak4642_of_match[]; | 515 | static struct of_device_id ak4642_of_match[]; |
516 | static int ak4642_i2c_probe(struct i2c_client *i2c, | 516 | static int ak4642_i2c_probe(struct i2c_client *i2c, |
517 | const struct i2c_device_id *id) | 517 | const struct i2c_device_id *id) |
@@ -576,7 +576,7 @@ static struct i2c_driver ak4642_i2c_driver = { | |||
576 | static int __init ak4642_modinit(void) | 576 | static int __init ak4642_modinit(void) |
577 | { | 577 | { |
578 | int ret = 0; | 578 | int ret = 0; |
579 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | 579 | #if IS_ENABLED(CONFIG_I2C) |
580 | ret = i2c_add_driver(&ak4642_i2c_driver); | 580 | ret = i2c_add_driver(&ak4642_i2c_driver); |
581 | #endif | 581 | #endif |
582 | return ret; | 582 | return ret; |
@@ -586,7 +586,7 @@ module_init(ak4642_modinit); | |||
586 | 586 | ||
587 | static void __exit ak4642_exit(void) | 587 | static void __exit ak4642_exit(void) |
588 | { | 588 | { |
589 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | 589 | #if IS_ENABLED(CONFIG_I2C) |
590 | i2c_del_driver(&ak4642_i2c_driver); | 590 | i2c_del_driver(&ak4642_i2c_driver); |
591 | #endif | 591 | #endif |
592 | 592 | ||