|
@@ -113,13 +113,13 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
|
|
ssi_pdev = of_find_device_by_node(ssi_np);
|
|
ssi_pdev = of_find_device_by_node(ssi_np);
|
|
if (!ssi_pdev) {
|
|
if (!ssi_pdev) {
|
|
dev_err(&pdev->dev, "failed to find SSI platform device\n");
|
|
dev_err(&pdev->dev, "failed to find SSI platform device\n");
|
|
- ret = -EINVAL;
|
|
|
|
|
|
+ ret = -EPROBE_DEFER;
|
|
goto fail;
|
|
goto fail;
|
|
}
|
|
}
|
|
codec_dev = of_find_i2c_device_by_node(codec_np);
|
|
codec_dev = of_find_i2c_device_by_node(codec_np);
|
|
if (!codec_dev) {
|
|
if (!codec_dev) {
|
|
dev_err(&pdev->dev, "failed to find codec platform device\n");
|
|
dev_err(&pdev->dev, "failed to find codec platform device\n");
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -EPROBE_DEFER;
|
|
}
|
|
}
|
|
|
|
|
|
data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
|
|
data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
|