|
@@ -1262,18 +1262,13 @@ static int fsl_ssi_probe(struct platform_device *pdev)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
hw_type = (enum fsl_ssi_type) of_id->data;
|
|
hw_type = (enum fsl_ssi_type) of_id->data;
|
|
|
|
|
|
- /* We only support the SSI in "I2S Slave" mode */
|
|
|
|
sprop = of_get_property(np, "fsl,mode", NULL);
|
|
sprop = of_get_property(np, "fsl,mode", NULL);
|
|
if (!sprop) {
|
|
if (!sprop) {
|
|
dev_err(&pdev->dev, "fsl,mode property is necessary\n");
|
|
dev_err(&pdev->dev, "fsl,mode property is necessary\n");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
- if (!strcmp(sprop, "ac97-slave")) {
|
|
|
|
|
|
+ if (!strcmp(sprop, "ac97-slave"))
|
|
ac97 = true;
|
|
ac97 = true;
|
|
- } else if (strcmp(sprop, "i2s-slave")) {
|
|
|
|
- dev_notice(&pdev->dev, "mode %s is unsupported\n", sprop);
|
|
|
|
- return -ENODEV;
|
|
|
|
- }
|
|
|
|
|
|
|
|
/* The DAI name is the last part of the full name of the node. */
|
|
/* The DAI name is the last part of the full name of the node. */
|
|
p = strrchr(np->full_name, '/') + 1;
|
|
p = strrchr(np->full_name, '/') + 1;
|