Merge branches 'topic/rt5640', 'topic/rt5645' and 'topic/rt5651' of git://git.kernel...
[deliverable/linux.git] / sound / soc / codecs / rt5640.c
index 79635ee42a61f1f6465b95a594eaef8d8fd7848e..ddefd5a476d04700d0b1f5f74d8c49608a7c83c9 100644 (file)
@@ -2018,6 +2018,10 @@ static int rt5640_probe(struct snd_soc_codec *codec)
                        rt5639_specific_dapm_routes,
                        ARRAY_SIZE(rt5639_specific_dapm_routes));
                break;
+       default:
+               dev_err(codec->dev,
+                       "The driver is for RT5639 RT5640 or RT5642 only\n");
+               return -ENODEV;
        }
 
        return 0;
@@ -2157,6 +2161,7 @@ MODULE_DEVICE_TABLE(i2c, rt5640_i2c_id);
 
 #if defined(CONFIG_OF)
 static const struct of_device_id rt5640_of_match[] = {
+       { .compatible = "realtek,rt5639", },
        { .compatible = "realtek,rt5640", },
        {},
 };
This page took 0.032492 seconds and 5 git commands to generate.