diff options
| -rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index f9090b167ad7..c5205690791e 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
| @@ -1262,18 +1262,13 @@ static int fsl_ssi_probe(struct platform_device *pdev) | |||
| 1262 | return -EINVAL; | 1262 | return -EINVAL; |
| 1263 | hw_type = (enum fsl_ssi_type) of_id->data; | 1263 | hw_type = (enum fsl_ssi_type) of_id->data; |
| 1264 | 1264 | ||
| 1265 | /* We only support the SSI in "I2S Slave" mode */ | ||
| 1266 | sprop = of_get_property(np, "fsl,mode", NULL); | 1265 | sprop = of_get_property(np, "fsl,mode", NULL); |
| 1267 | if (!sprop) { | 1266 | if (!sprop) { |
| 1268 | dev_err(&pdev->dev, "fsl,mode property is necessary\n"); | 1267 | dev_err(&pdev->dev, "fsl,mode property is necessary\n"); |
| 1269 | return -EINVAL; | 1268 | return -EINVAL; |
| 1270 | } | 1269 | } |
| 1271 | if (!strcmp(sprop, "ac97-slave")) { | 1270 | if (!strcmp(sprop, "ac97-slave")) |
| 1272 | ac97 = true; | 1271 | ac97 = true; |
| 1273 | } else if (strcmp(sprop, "i2s-slave")) { | ||
| 1274 | dev_notice(&pdev->dev, "mode %s is unsupported\n", sprop); | ||
| 1275 | return -ENODEV; | ||
| 1276 | } | ||
| 1277 | 1272 | ||
| 1278 | /* The DAI name is the last part of the full name of the node. */ | 1273 | /* The DAI name is the last part of the full name of the node. */ |
| 1279 | p = strrchr(np->full_name, '/') + 1; | 1274 | p = strrchr(np->full_name, '/') + 1; |
