]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/soc/codecs/ak4535.c
ALSA: ASoC: Don't suggest compile time selection of codec access
[mirror_ubuntu-bionic-kernel.git] / sound / soc / codecs / ak4535.c
index e512cd79d767ee2ad902d0e0334cbe4c719e36f3..088cf99277203ff4d729d722629ed8cf222f2cb0 100644 (file)
@@ -622,7 +622,7 @@ static int ak4535_probe(struct platform_device *pdev)
        struct ak4535_setup_data *setup;
        struct snd_soc_codec *codec;
        struct ak4535_priv *ak4535;
-       int ret = 0;
+       int ret;
 
        printk(KERN_INFO "AK4535 Audio Codec %s", AK4535_VERSION);
 
@@ -644,14 +644,14 @@ static int ak4535_probe(struct platform_device *pdev)
        INIT_LIST_HEAD(&codec->dapm_paths);
 
        ak4535_socdev = socdev;
+       ret = -ENODEV;
+
 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
        if (setup->i2c_address) {
                codec->hw_write = (hw_write_t)i2c_master_send;
                codec->hw_read = (hw_read_t)i2c_master_recv;
                ret = ak4535_add_i2c_device(pdev, setup);
        }
-#else
-       /* Add other interfaces here */
 #endif
 
        if (ret != 0) {