diff options
-rw-r--r-- | sound/soc/codecs/rt5640.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c index 2133fa0c5114..ddefd5a476d0 100644 --- a/sound/soc/codecs/rt5640.c +++ b/sound/soc/codecs/rt5640.c | |||
@@ -2018,6 +2018,10 @@ static int rt5640_probe(struct snd_soc_codec *codec) | |||
2018 | rt5639_specific_dapm_routes, | 2018 | rt5639_specific_dapm_routes, |
2019 | ARRAY_SIZE(rt5639_specific_dapm_routes)); | 2019 | ARRAY_SIZE(rt5639_specific_dapm_routes)); |
2020 | break; | 2020 | break; |
2021 | default: | ||
2022 | dev_err(codec->dev, | ||
2023 | "The driver is for RT5639 RT5640 or RT5642 only\n"); | ||
2024 | return -ENODEV; | ||
2021 | } | 2025 | } |
2022 | 2026 | ||
2023 | return 0; | 2027 | return 0; |